From e41c49ecbf44c3859e5ea9126f5888b3d36ac601 Mon Sep 17 00:00:00 2001 From: Tatiana Date: Mon, 19 Aug 2024 18:39:25 -0700 Subject: [PATCH] Fix: Hide empty "Files and Links" tab in patient view --- src/pages/patientView/PatientViewPageTabs.tsx | 37 ++++++++++--------- 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/src/pages/patientView/PatientViewPageTabs.tsx b/src/pages/patientView/PatientViewPageTabs.tsx index 3bb9ec80efa..f8f29d0496e 100644 --- a/src/pages/patientView/PatientViewPageTabs.tsx +++ b/src/pages/patientView/PatientViewPageTabs.tsx @@ -553,24 +553,25 @@ export function tabs( ); - tabs.push( - -
- -
-
- ); + if (pageComponent.shouldShowResources) + tabs.push( + +
+ +
+
+ ); tabs.push(