Skip to content

Commit 22e78ca

Browse files
committed
Fixed issue of pagination for patients without national ID
1 parent 11cb34c commit 22e78ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/PatientDirectory/PatientDirectory.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ const PatientDirectory: React.FC<{ searchTerm?: string }> = ({ searchTerm }) =>
150150
<PatientsList>
151151
{patients.results.map((patient) => (
152152
<div
153-
key={`patient_${patient.national_id}_${selectedOption}`}
153+
key={patient.id}
154154
css={{ marginBottom: '8px' }}
155155
>
156156
<PatientCard {...patient} selectedHospital={selectedOption} />

0 commit comments

Comments
 (0)