From f2df59aa42af6db21451d4854a63efb8087fb65c Mon Sep 17 00:00:00 2001 From: James Kent Date: Thu, 26 Oct 2023 16:09:42 -0500 Subject: [PATCH] change flat data type --- .../CurationImport/ImportFromNeurostore/NeurostoreSearch.tsx | 4 ++-- .../src/pages/Studies/StudiesPage/StudiesPage.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 317cb8116..71c1e674c 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 121bf41ea..3947fa409 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: 'true' | 'false' | undefined = 'true' + public flat: boolean | undefined = true ) {} }