From 7e2b58b5dd5e9db25f75879faad3ed11662a9449 Mon Sep 17 00:00:00 2001 From: Ashraf Mohammed Date: Mon, 25 Dec 2023 16:44:54 +0530 Subject: [PATCH 1/2] remove scroll bar --- src/Components/Patient/PatientHome.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Components/Patient/PatientHome.tsx b/src/Components/Patient/PatientHome.tsx index dc400ddc79b..8ddcfff8520 100644 --- a/src/Components/Patient/PatientHome.tsx +++ b/src/Components/Patient/PatientHome.tsx @@ -312,18 +312,18 @@ export const PatientHome = (props: any) => { ) { const medHis = patientData.medical_history; patientMedHis = medHis.map((item: any, idx: number) => ( -
+ <> {item?.disease !== "NO" && ( - <> -
+
+
{item.disease}
-
+
{item.details}
- +
)} -
+ )); } From 1149987df8da2bab07b91bfaa8d79fbf111d5e8a Mon Sep 17 00:00:00 2001 From: Ashraf Mohammed <98876115+AshrafMd-1@users.noreply.github.com> Date: Tue, 26 Dec 2023 13:03:36 +0530 Subject: [PATCH 2/2] add key to div --- src/Components/Patient/PatientHome.tsx | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/src/Components/Patient/PatientHome.tsx b/src/Components/Patient/PatientHome.tsx index 8ddcfff8520..22edfb16192 100644 --- a/src/Components/Patient/PatientHome.tsx +++ b/src/Components/Patient/PatientHome.tsx @@ -311,20 +311,18 @@ export const PatientHome = (props: any) => { patientData.medical_history.length ) { const medHis = patientData.medical_history; - patientMedHis = medHis.map((item: any, idx: number) => ( - <> - {item?.disease !== "NO" && ( -
-
- {item.disease} -
-
- {item.details} -
+ patientMedHis = medHis + .filter((item) => item.disease !== "NO") + .map((item, idx) => ( +
+
+ {item.disease}
- )} - - )); +
+ {item.details} +
+
+ )); } let consultationList, sampleList;