From de37c317e43cb87ec1c65ffb7d0ac2421617b68a Mon Sep 17 00:00:00 2001 From: Rithvik Nishad Date: Wed, 17 Jul 2024 16:31:31 +0530 Subject: [PATCH] Fixes location management page not opening from CNS if no patient present in monitor (#8155) --- 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 ae636392ae9..7f839da04d7 100644 --- a/src/Components/VitalsMonitor/VitalsMonitorHeader.tsx +++ b/src/Components/VitalsMonitor/VitalsMonitorHeader.tsx @@ -37,7 +37,7 @@ const VitalsMonitorHeader = ({ patientAssetBed }: VitalsMonitorHeaderProps) => { {bed && (