Skip to content

Commit

Permalink
logic update for show monitors without patients
Browse files Browse the repository at this point in the history
  • Loading branch information
Dev committed Jun 21, 2024
1 parent 162e982 commit 77b6f32
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Components/Facility/CentralNursingStation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ export default function CentralNursingStation({ facilityId }: Props) {
asset_class: "HL7MONITOR",
ordering: qParams.ordering || "bed__name",
bed_is_occupied:
(qParams.hide_monitors_without_patient ?? "true") === "true" ||
undefined,
qParams.show_monitors_without_patient === "true" ? false : true,
},
});

Expand Down Expand Up @@ -158,10 +157,10 @@ export default function CentralNursingStation({ facilityId }: Props) {
errorClassName="hidden"
/>
<CheckBoxFormField
name="hide_monitors_without_patient"
name="show_monitors_without_patient"
label="Show Monitors without Patient"
value={JSON.parse(
qParams.hide_monitors_without_patient ?? false,
qParams.show_monitors_without_patient ?? false,
)}
onChange={(e) => updateQuery({ [e.name]: `${e.value}` })}
labelClassName="text-sm"
Expand Down

0 comments on commit 77b6f32

Please sign in to comment.