diff --git a/compose/neurosynth-frontend/src/components/CurationComponents/CurationImport/CurationImport/ImportFromNeurostore/NeurostoreSearch.tsx b/compose/neurosynth-frontend/src/components/CurationComponents/CurationImport/CurationImport/ImportFromNeurostore/NeurostoreSearch.tsx index 71c1e674c..317cb8116 100644 --- a/compose/neurosynth-frontend/src/components/CurationComponents/CurationImport/CurationImport/ImportFromNeurostore/NeurostoreSearch.tsx +++ b/compose/neurosynth-frontend/src/components/CurationComponents/CurationImport/CurationImport/ImportFromNeurostore/NeurostoreSearch.tsx @@ -46,7 +46,7 @@ const NeurostoreSearch: React.FC = (props) => { * with the studysetOwner set (if logged in) and undefined otherwise */ const { data, isLoading, isError, isFetching } = useGetStudies( - { ...debouncedSearchCriteria, studysetOwner: user?.sub, flat: true }, + { ...debouncedSearchCriteria, studysetOwner: user?.sub, flat: 'true' }, !authenticationIsLoading ); @@ -56,7 +56,7 @@ const NeurostoreSearch: React.FC = (props) => { isError: allDataForSearchIsError, isFetching: allDataForSearchIsFetching, } = useGetStudies( - { ...debouncedSearchCriteria, studysetOwner: user?.sub, pageSize: 29999, flat: true }, // backend checks for less than 30000 + { ...debouncedSearchCriteria, studysetOwner: user?.sub, pageSize: 29999, flat: 'true' }, // backend checks for less than 30000 !authenticationIsLoading ); diff --git a/compose/neurosynth-frontend/src/pages/Studies/StudiesPage/StudiesPage.tsx b/compose/neurosynth-frontend/src/pages/Studies/StudiesPage/StudiesPage.tsx index 3947fa409..121bf41ea 100644 --- a/compose/neurosynth-frontend/src/pages/Studies/StudiesPage/StudiesPage.tsx +++ b/compose/neurosynth-frontend/src/pages/Studies/StudiesPage/StudiesPage.tsx @@ -72,7 +72,7 @@ export class SearchCriteria { public level: 'group' | 'meta' | undefined = undefined, public pmid: string | undefined = undefined, public doi: string | undefined = undefined, - public flat: boolean | undefined = true + public flat: 'true' | 'false' | undefined = 'true' ) {} }