From 48838b8f6c74fff5e9154e4bdc00d4a408bfe2bb Mon Sep 17 00:00:00 2001 From: Rithvik Nishad Date: Wed, 22 May 2024 17:27:43 +0530 Subject: [PATCH] CNS: Skip filtering by `bed_occupied` if "hide monitors without patient" is unchecked (#7881) --- src/Components/Facility/CentralNursingStation.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Components/Facility/CentralNursingStation.tsx b/src/Components/Facility/CentralNursingStation.tsx index 30005be0be6..2f31b619776 100644 --- a/src/Components/Facility/CentralNursingStation.tsx +++ b/src/Components/Facility/CentralNursingStation.tsx @@ -48,7 +48,8 @@ export default function CentralNursingStation({ facilityId }: Props) { asset_class: "HL7MONITOR", ordering: qParams.ordering || "bed__name", bed_is_occupied: - (qParams.hide_monitors_without_patient ?? "true") === "true", + (qParams.hide_monitors_without_patient ?? "true") === "true" || + undefined, }, });