Fix double back require to move back on orders (#3429)

* Fix double back require to move back

* Add missing replace true
This commit is contained in:
Paweł Chyła 2023-03-30 12:55:24 +02:00 committed by GitHub
parent fc43969114
commit a3b32def62
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,6 +37,7 @@ export function useSortRedirects<SortField extends string>({
asc: hasQuery ? false : params.asc, asc: hasQuery ? false : params.asc,
sort: hasQuery ? sortWithQuery : sortWithoutQuery, sort: hasQuery ? sortWithQuery : sortWithoutQuery,
}), }),
{ replace: true },
); );
}, [params.query]); }, [params.query]);
@ -47,6 +48,7 @@ export function useSortRedirects<SortField extends string>({
...params, ...params,
sort: defaultSortField, sort: defaultSortField,
}), }),
{ replace: true },
); );
} }
}, [params]); }, [params]);