From 0b7529650a2e30e23f5e8e449d1d19cede1784e1 Mon Sep 17 00:00:00 2001 From: rithviknishad Date: Wed, 18 Sep 2024 16:20:05 +0530 Subject: [PATCH] fix update log failing due to null sent to backend --- src/Components/Patient/DailyRounds.tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Components/Patient/DailyRounds.tsx b/src/Components/Patient/DailyRounds.tsx index 37582e88c2a..f949bd9e404 100644 --- a/src/Components/Patient/DailyRounds.tsx +++ b/src/Components/Patient/DailyRounds.tsx @@ -359,15 +359,15 @@ export const DailyRounds = (props: any) => { rhythm_detail: state.form.rhythm_detail, ventilator_spo2: state.form.ventilator_spo2 ?? null, consciousness_level: state.form.consciousness_level || undefined, - bowel_issue: state.form.bowel_issue, - bladder_drainage: state.form.bladder_drainage, - bladder_issue: state.form.bladder_issue, + bowel_issue: state.form.bowel_issue ?? undefined, + bladder_drainage: state.form.bladder_drainage ?? undefined, + bladder_issue: state.form.bladder_issue ?? undefined, is_experiencing_dysuria: state.form.is_experiencing_dysuria, - urination_frequency: state.form.urination_frequency, - sleep: state.form.sleep, - nutrition_route: state.form.nutrition_route, + urination_frequency: state.form.urination_frequency ?? undefined, + sleep: state.form.sleep ?? undefined, + nutrition_route: state.form.nutrition_route ?? undefined, oral_issue: state.form.oral_issue ?? undefined, - appetite: state.form.appetite, + appetite: state.form.appetite ?? undefined, blood_sugar_level: state.form.blood_sugar_level, nursing: state.form.nursing, };