File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
compose/neurosynth-frontend/src/pages
CurationImport/components Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -25,10 +25,12 @@ const excludedListItemStylesChildren: SxProps = {
2525 } ,
2626} ;
2727
28+ export const SELECTED_CURATION_STEP_LOCAL_STORAGE_KEY_SUFFIX = '_CURATION_STEP_ID' ;
29+
2830function useCurationBoardGroupsState ( ) {
2931 const curationColumns = useProjectCurationColumns ( ) ;
3032 const { projectId } = useParams < { projectId : string } > ( ) ;
31- const selectedCurationStepLocalStorageKey = `${ projectId } _CURATION_STEP_ID ` ;
33+ const selectedCurationStepLocalStorageKey = `${ projectId } ${ SELECTED_CURATION_STEP_LOCAL_STORAGE_KEY_SUFFIX } ` ;
3234 const prismaConfig = useProjectCurationPrismaConfig ( ) ;
3335 const [ selectedGroup , setSelectedGroup ] = useState < IGroupListItem > ( ) ;
3436 const excludedGroups = useProjectCurationExclusionTags ( ) ;
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ import { SearchCriteria } from 'pages/Study/Study.types';
2020import { useNavigate } from 'react-router-dom' ;
2121import { v4 as uuid } from 'uuid' ;
2222import CurationImportFinalizeNameAndReview from './CurationImportFinalizeNameAndReview' ;
23+ import { SELECTED_CURATION_STEP_LOCAL_STORAGE_KEY_SUFFIX } from 'pages/Curation/hooks/useCurationBoardGroupsState' ;
2324
2425const CurationImportFinalize : React . FC < {
2526 importMode : EImportMode ;
@@ -98,6 +99,7 @@ const CurationImportFinalize: React.FC<{
9899
99100 updateCurationColumns ( updatedColumns ) ;
100101 enqueueSnackbar ( `Added new import: ${ importName } ` , { variant : 'success' } ) ;
102+ localStorage . removeItem ( `${ projectId } ${ SELECTED_CURATION_STEP_LOCAL_STORAGE_KEY_SUFFIX } ` ) ;
101103 navigate ( `/projects/${ projectId } /curation` ) ;
102104 } ;
103105
You can’t perform that action at this time.
0 commit comments