From 7e1cfb5bd8d27b217b8cd35fecaddc2fa003cafb Mon Sep 17 00:00:00 2001 From: Abhiuday Date: Thu, 8 Feb 2024 18:59:36 +0530 Subject: [PATCH 1/3] fix(consultation): fixes #7187 hide diagnoses card if empty --- .../Facility/ConsultationDetails/index.tsx | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/Components/Facility/ConsultationDetails/index.tsx b/src/Components/Facility/ConsultationDetails/index.tsx index 071e7bfc1af..a937724f55d 100644 --- a/src/Components/Facility/ConsultationDetails/index.tsx +++ b/src/Components/Facility/ConsultationDetails/index.tsx @@ -401,13 +401,16 @@ export const ConsultationDetails = (props: any) => { -
-
- -
-
+ {consultationData.diagnoses && + consultationData.diagnoses.length > 0 && ( +
+
+ +
+
+ )}
From 82d30d4c52a8b8062c52a2044f5b74d1139d9f0d Mon Sep 17 00:00:00 2001 From: Abhiuday Date: Thu, 8 Feb 2024 20:21:38 +0530 Subject: [PATCH 2/3] fix(consultation): resolved suggestion --- .../Facility/ConsultationDetails/index.tsx | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/Components/Facility/ConsultationDetails/index.tsx b/src/Components/Facility/ConsultationDetails/index.tsx index a937724f55d..e4ce9c696c1 100644 --- a/src/Components/Facility/ConsultationDetails/index.tsx +++ b/src/Components/Facility/ConsultationDetails/index.tsx @@ -401,16 +401,15 @@ export const ConsultationDetails = (props: any) => {
- {consultationData.diagnoses && - consultationData.diagnoses.length > 0 && ( -
-
- -
+ {consultationData.diagnoses?.length && ( +
+
+
- )} +
+ )}
From 54fca6fde71eb919ea6abb4c068af0d75f0208fa Mon Sep 17 00:00:00 2001 From: Rithvik Nishad Date: Tue, 13 Feb 2024 15:36:09 +0530 Subject: [PATCH 3/3] Update src/Components/Facility/ConsultationDetails/index.tsx --- src/Components/Facility/ConsultationDetails/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Components/Facility/ConsultationDetails/index.tsx b/src/Components/Facility/ConsultationDetails/index.tsx index e4ce9c696c1..808a2c90de9 100644 --- a/src/Components/Facility/ConsultationDetails/index.tsx +++ b/src/Components/Facility/ConsultationDetails/index.tsx @@ -401,7 +401,7 @@ export const ConsultationDetails = (props: any) => {
- {consultationData.diagnoses?.length && ( + {!!consultationData.diagnoses?.length && (