mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix: nit
This commit is contained in:
parent
7c4c2a2448
commit
1607475b21
@ -98,7 +98,11 @@ export const useUrlQueryParam = <T>(
|
||||
if (!router.isReady) return;
|
||||
const newQuery = { ...router.query };
|
||||
|
||||
if (val === defaultValue || val === undefined || val === "") {
|
||||
if (
|
||||
val === defaultValue ||
|
||||
val === undefined ||
|
||||
serializer.stringify(val) === ""
|
||||
) {
|
||||
delete newQuery[key];
|
||||
} else {
|
||||
newQuery[key] = serializer.stringify(val);
|
||||
|
Loading…
Reference in New Issue
Block a user