Skip to content

Commit 633b184

Browse files
authored
fix(Tenant): remove falsy query params from address (#2690)
1 parent 76275c4 commit 633b184

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/containers/Tenant/useTenantQueryParams.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export function useTenantQueryParams() {
3030
);
3131
const handleShowGrantAccessChange = React.useCallback(
3232
(value?: boolean) => {
33-
setQueryParams({showGrantAccess: value}, 'replaceIn');
33+
setQueryParams({showGrantAccess: value || undefined}, 'replaceIn');
3434
},
3535
[setQueryParams],
3636
);
@@ -56,7 +56,7 @@ export function useTenantQueryParams() {
5656
);
5757
const handleHealthcheckViewChange = React.useCallback(
5858
(value?: string) => {
59-
setQueryParams({view: value}, 'replaceIn');
59+
setQueryParams({view: value || undefined}, 'replaceIn');
6060
},
6161
[setQueryParams],
6262
);

0 commit comments

Comments
 (0)