diff --git a/src/hooks/useUrlFilterParams.ts b/src/hooks/useUrlFilterParams.ts index 816f214b1..7b25c82f3 100644 --- a/src/hooks/useUrlFilterParams.ts +++ b/src/hooks/useUrlFilterParams.ts @@ -180,9 +180,11 @@ export const useUrlFilterParams = ({ preset }: { preset?: FilterById }) => { (filter: string | undefined | null) => { router.push({ pathname: router.asPath.split('?')[0], - query: { - filter, - }, + query: filter + ? { + filter, + } + : {}, }); }, [router],