From 891367ad5d4bc02b913d337d6b4c82f3d73f2e3e Mon Sep 17 00:00:00 2001 From: rithviknishad Date: Tue, 16 Jul 2024 11:00:47 +0530 Subject: [PATCH] Fixes location management page not opening from CNS if no patient present in monitor --- src/Components/Facility/models.tsx | 3 ++- src/Components/VitalsMonitor/VitalsMonitorHeader.tsx | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Components/Facility/models.tsx b/src/Components/Facility/models.tsx index 74a0d4a0f26..6d2c9c5d841 100644 --- a/src/Components/Facility/models.tsx +++ b/src/Components/Facility/models.tsx @@ -241,7 +241,8 @@ export interface BedModel { facility?: string; location_object?: { name: string; - id?: string; + id: string; + facility?: { name: string; id: string }; }; location?: string; is_occupied?: boolean; diff --git a/src/Components/VitalsMonitor/VitalsMonitorHeader.tsx b/src/Components/VitalsMonitor/VitalsMonitorHeader.tsx index c3b2888c2f7..d5341e4b8a6 100644 --- a/src/Components/VitalsMonitor/VitalsMonitorHeader.tsx +++ b/src/Components/VitalsMonitor/VitalsMonitorHeader.tsx @@ -37,7 +37,7 @@ const VitalsMonitorHeader = ({ patientAssetBed }: VitalsMonitorHeaderProps) => { {bed && (