Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DUOS-2825] Replace institution id with name in /datalibrary/myinstitution page #2416

Merged
merged 4 commits into from
Dec 6, 2023
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/pages/DatasetSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export const DatasetSearch = (props) => {
const [loading, setLoading] = useState(true);
const user = Storage.getCurrentUser();
const institution = user.institution?.id;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe switch this to institutionId for consistency and correctness

const institutionName = user.institution?.name;

// branded study table versions
const versions = {
Expand Down Expand Up @@ -107,7 +108,7 @@ export const DatasetSearch = (props) => {
'myinstitution': {
query: user.isSigningOfficial ? signingOfficialQuery(institution) : myInstitutionQuery(institution),
icon: null,
title: institution + ' Data Library',
title: institutionName + ' Data Library',
},
'nhgri': {
query: {
Expand Down
Loading