diff --git a/src/Components/Facility/PatientConsultationNotesList.tsx b/src/Components/Facility/PatientConsultationNotesList.tsx index e7e0bb25504..f81ef122f6c 100644 --- a/src/Components/Facility/PatientConsultationNotesList.tsx +++ b/src/Components/Facility/PatientConsultationNotesList.tsx @@ -26,6 +26,7 @@ const PatientConsultationNotesList = (props: PatientNotesProps) => { const fetchNotes = async () => { setIsLoading(true); + const { data } = await request(routes.getPatientNotes, { pathParams: { patientId: props.state.patientId || "", @@ -80,7 +81,7 @@ const PatientConsultationNotesList = (props: PatientNotesProps) => { } }; - if (isLoading && !state.notes.length) { + if (isLoading) { return (
diff --git a/src/Components/Facility/PatientNotesList.tsx b/src/Components/Facility/PatientNotesList.tsx index 9585ace5db7..4e1d0a5a7a6 100644 --- a/src/Components/Facility/PatientNotesList.tsx +++ b/src/Components/Facility/PatientNotesList.tsx @@ -74,7 +74,7 @@ const PatientNotesList = (props: PatientNotesProps) => { } }; - if (isLoading && !state.notes.length) { + if (isLoading) { return (