From f4c818ddf4782cfdffe6d41547f5a8a03b24aac3 Mon Sep 17 00:00:00 2001 From: Donald Kibet Date: Fri, 17 Jan 2025 15:29:52 +0300 Subject: [PATCH] (fix) : relationship list fix (#556) --- .../src/referrals/dependents/dependents.component.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/esm-shr-app/src/referrals/dependents/dependents.component.tsx b/packages/esm-shr-app/src/referrals/dependents/dependents.component.tsx index 0d2665b7..da95c5b4 100644 --- a/packages/esm-shr-app/src/referrals/dependents/dependents.component.tsx +++ b/packages/esm-shr-app/src/referrals/dependents/dependents.component.tsx @@ -53,7 +53,9 @@ const DependentsComponent: React.FC = ({ patient, patientUuid }) header: 'Actions', }, ]; - const rows = dependents?.map((dependent) => ({ + + const rows = dependents?.map((dependent, index) => ({ + id: `${index}-${dependent.name}`, name: capitalize(dependent.name), relationship: capitalize(dependent.relationship), phoneNumber: dependent.phoneNumber,