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,
|
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]);
|
||||||
|
|
Loading…
Reference in a new issue