diff --git a/src/Components/Facility/DischargeModal.tsx b/src/Components/Facility/DischargeModal.tsx index cb8aee25037..80f2fdd7340 100644 --- a/src/Components/Facility/DischargeModal.tsx +++ b/src/Components/Facility/DischargeModal.tsx @@ -106,7 +106,7 @@ const DischargeModal = ({ }); const diagnoses = - data?.diagnoses?.map((diagnosis) => diagnosis) || []; + data?.diagnoses ?? []; const discharge_reason = new_discharge_reason ?? preDischargeForm.new_discharge_reason;