diff --git a/apps/portals/src/configurations/elportal/synapseConfigs/handleFilesToParticipants.tsx b/apps/portals/src/configurations/elportal/synapseConfigs/handleFilesToParticipants.tsx index c52a681ce7..4c3c5fffb8 100644 --- a/apps/portals/src/configurations/elportal/synapseConfigs/handleFilesToParticipants.tsx +++ b/apps/portals/src/configurations/elportal/synapseConfigs/handleFilesToParticipants.tsx @@ -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' } diff --git a/apps/portals/src/configurations/elportal/synapseConfigs/handleParticipantsToFiles.tsx b/apps/portals/src/configurations/elportal/synapseConfigs/handleParticipantsToFiles.tsx index b5ea11e840..9077516f8e 100644 --- a/apps/portals/src/configurations/elportal/synapseConfigs/handleParticipantsToFiles.tsx +++ b/apps/portals/src/configurations/elportal/synapseConfigs/handleParticipantsToFiles.tsx @@ -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' }