From d5805fa5077ccfe5459a485720ddc6209d3de787 Mon Sep 17 00:00:00 2001 From: Rithvik Nishad Date: Mon, 19 Aug 2024 15:22:33 +0530 Subject: [PATCH] Fix camera preset save button disable logic for cases of last moved position (#8345) --- .../ConsultationDetails/ConsultationFeedTab.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/Components/Facility/ConsultationDetails/ConsultationFeedTab.tsx b/src/Components/Facility/ConsultationDetails/ConsultationFeedTab.tsx index c1095d06e5a..08d2b314b82 100644 --- a/src/Components/Facility/ConsultationDetails/ConsultationFeedTab.tsx +++ b/src/Components/Facility/ConsultationDetails/ConsultationFeedTab.tsx @@ -145,6 +145,8 @@ export const ConsultationFeedTab = (props: ConsultationTabProps) => { return No bed/asset linked allocated; } + const cannotSaveToPreset = !hasMoved || !preset?.id; + return ( <> { ) : (