From ae9281eff50a9ff7241393de154970cf8c32b3c5 Mon Sep 17 00:00:00 2001 From: Jason Hwee <1216418+hweej@users.noreply.github.com> Date: Wed, 11 Dec 2024 15:45:57 -0500 Subject: [PATCH] Change file and links name to resource displayName. --- src/pages/studyView/StudyViewPage.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/pages/studyView/StudyViewPage.tsx b/src/pages/studyView/StudyViewPage.tsx index 5628f49ba2d..7fb84e43448 100644 --- a/src/pages/studyView/StudyViewPage.tsx +++ b/src/pages/studyView/StudyViewPage.tsx @@ -721,7 +721,13 @@ export default class StudyViewPage extends React.Component< id={ StudyViewPageTabKeyEnum.FILES_AND_LINKS } - linkText={RESOURCES_TAB_NAME} + linkText={ + this.store.resourceDefinitions + .result?.length == 1 + ? this.store.resourceDefinitions + .result[0].displayName + : RESOURCES_TAB_NAME + } hide={!this.shouldShowResources} >