From 15c03dab927e461e774305299d8e914b13af6377 Mon Sep 17 00:00:00 2001 From: Tatiana Date: Tue, 27 Aug 2024 22:38:17 -0700 Subject: [PATCH] Fix: handle empty "Files and Links" tab in patient view --- src/pages/patientView/PatientViewPageTabs.tsx | 39 ++++++++++--------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/src/pages/patientView/PatientViewPageTabs.tsx b/src/pages/patientView/PatientViewPageTabs.tsx index 3bb9ec80efa..76d6d6cc19b 100644 --- a/src/pages/patientView/PatientViewPageTabs.tsx +++ b/src/pages/patientView/PatientViewPageTabs.tsx @@ -552,25 +552,26 @@ export function tabs( )} ); - - tabs.push( - -
- -
-
- ); + if (pageComponent.shouldShowResources) + tabs.push( + +
+ +
+
+ ); tabs.push(