From 0f282a83382428537e95f21e37aa709e4918f0e3 Mon Sep 17 00:00:00 2001 From: Elena Makarova Date: Fri, 8 Aug 2025 16:25:35 +0300 Subject: [PATCH] fix(Tenant): remove falsy query params from address --- src/containers/Tenant/useTenantQueryParams.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/containers/Tenant/useTenantQueryParams.ts b/src/containers/Tenant/useTenantQueryParams.ts index e5715c4845..0672d2b98c 100644 --- a/src/containers/Tenant/useTenantQueryParams.ts +++ b/src/containers/Tenant/useTenantQueryParams.ts @@ -30,7 +30,7 @@ export function useTenantQueryParams() { ); const handleShowGrantAccessChange = React.useCallback( (value?: boolean) => { - setQueryParams({showGrantAccess: value}, 'replaceIn'); + setQueryParams({showGrantAccess: value || undefined}, 'replaceIn'); }, [setQueryParams], ); @@ -56,7 +56,7 @@ export function useTenantQueryParams() { ); const handleHealthcheckViewChange = React.useCallback( (value?: string) => { - setQueryParams({view: value}, 'replaceIn'); + setQueryParams({view: value || undefined}, 'replaceIn'); }, [setQueryParams], );