From 9f2f9d64c231229ac2207fbc1a8acf920bd0d269 Mon Sep 17 00:00:00 2001 From: JOSHIK ROSHAN <96165631+JOSHIK27@users.noreply.github.com> Date: Thu, 22 Aug 2024 09:06:18 +0100 Subject: [PATCH] Update src/Components/Facility/DischargeModal.tsx Co-authored-by: Rithvik Nishad --- src/Components/Facility/DischargeModal.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;