Skip to content

Commit

Permalink
change flat data type
Browse files Browse the repository at this point in the history
  • Loading branch information
jdkent committed Oct 26, 2023
1 parent 86d3e6f commit f2df59a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const NeurostoreSearch: React.FC<IImportArgs> = (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
);

Expand All @@ -56,7 +56,7 @@ const NeurostoreSearch: React.FC<IImportArgs> = (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
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
) {}
}

Expand Down

0 comments on commit f2df59a

Please sign in to comment.