diff --git a/packages/openneuro-app/src/scripts/search/search-container.tsx b/packages/openneuro-app/src/scripts/search/search-container.tsx index 31739e2f1..4833db4a3 100644 --- a/packages/openneuro-app/src/scripts/search/search-container.tsx +++ b/packages/openneuro-app/src/scripts/search/search-container.tsx @@ -102,14 +102,12 @@ const SearchContainer: FC = ({ portalContent }) => { const { searchParams, setSearchParams } = useContext(SearchParamsCtx) const modality = portalContent?.modality || null - useEffect(() => { - setDefaultSearch( - modality, - searchParams, - setSearchParams, - new URLSearchParams(location.search), - ) - }, [modality, searchParams.modality_selected, setSearchParams, location]) + setDefaultSearch( + modality, + searchParams, + setSearchParams, + new URLSearchParams(location.search), + ) const { loading, data, fetchMore, refetch, variables, error } = useSearchResults()