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:
parent
fc43969114
commit
a3b32def62
1 changed files with 2 additions and 0 deletions
|
@ -37,6 +37,7 @@ export function useSortRedirects<SortField extends string>({
|
|||
asc: hasQuery ? false : params.asc,
|
||||
sort: hasQuery ? sortWithQuery : sortWithoutQuery,
|
||||
}),
|
||||
{ replace: true },
|
||||
);
|
||||
}, [params.query]);
|
||||
|
||||
|
@ -47,6 +48,7 @@ export function useSortRedirects<SortField extends string>({
|
|||
...params,
|
||||
sort: defaultSortField,
|
||||
}),
|
||||
{ replace: true },
|
||||
);
|
||||
}
|
||||
}, [params]);
|
||||
|
|
Loading…
Reference in a new issue