Skip to content

Commit

Permalink
Merge pull request Sage-Bionetworks#729 from jay-hodgson/PORTALS-2955b
Browse files Browse the repository at this point in the history
PORTALS-2955: Remember to clear the session storage value if showing all
  • Loading branch information
jay-hodgson committed Feb 20, 2024
2 parents 146f8ca + 7d92cd0 commit c9cd4ce
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ export const handleSelectedFilesToParticipants = async (
),
JSON.stringify([sessionStorageFilter]),
)
} else {
sessionStorage.removeItem(
SynapseUtilityFunctions.QUERY_FILTERS_SESSION_STORAGE_KEY(
'cohort-builder-individuals-perspective',
),
)
}
window.location.href = '/Explore/Data by Participants'
}
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ export const handleSelectedParticipantsToFiles = async (
),
JSON.stringify([sessionStorageFilter]),
)
} else {
sessionStorage.removeItem(
SynapseUtilityFunctions.QUERY_FILTERS_SESSION_STORAGE_KEY(
'cohort-builder-files-perspective',
),
)
}
window.location.href = '/Explore/Data by Files'
}

0 comments on commit c9cd4ce

Please sign in to comment.