Skip to content

Commit

Permalink
Change file and links name to resource displayName.
Browse files Browse the repository at this point in the history
  • Loading branch information
hweej committed Dec 11, 2024
1 parent 8987b96 commit ae9281e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/pages/studyView/StudyViewPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
>
<div>
Expand Down

0 comments on commit ae9281e

Please sign in to comment.