diff --git a/client/src/pages/patients/patient-details/PatientDetails.jsx b/client/src/pages/patients/patient-details/PatientDetails.jsx index 7fe6debf..d3ab3ba7 100644 --- a/client/src/pages/patients/patient-details/PatientDetails.jsx +++ b/client/src/pages/patients/patient-details/PatientDetails.jsx @@ -32,6 +32,7 @@ export default function PatientDetails() { throw new Error('Failed to fetch patient.'); } }, + retry: false, }); useEffect(() => { @@ -43,7 +44,7 @@ export default function PatientDetails() { } }, [isError, navigate, patientId]); - if (isLoading) { + if (isLoading || isError) { return ; }