Skip to content

Commit

Permalink
(fix) : relationship list fix (#556)
Browse files Browse the repository at this point in the history
  • Loading branch information
donaldkibet authored Jan 17, 2025
1 parent 57d4e5e commit f4c818d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ const DependentsComponent: React.FC<DependentProps> = ({ 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,
Expand Down

0 comments on commit f4c818d

Please sign in to comment.