From f8b93ce93f650d23f6aa7246e9bd885a01ab4f0b Mon Sep 17 00:00:00 2001 From: fuscodev Date: Thu, 30 Jan 2025 22:14:11 +0100 Subject: [PATCH] fix: switch space bug (#692) --- .../src/features/space/components/sidebar/switch-space.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/client/src/features/space/components/sidebar/switch-space.tsx b/apps/client/src/features/space/components/sidebar/switch-space.tsx index 8009af0f..90734f80 100644 --- a/apps/client/src/features/space/components/sidebar/switch-space.tsx +++ b/apps/client/src/features/space/components/sidebar/switch-space.tsx @@ -13,6 +13,7 @@ interface SwitchSpaceProps { export function SwitchSpace({ spaceName, spaceSlug }: SwitchSpaceProps) { const navigate = useNavigate(); + const [opened, { close, open }] = useDisclosure(false); const handleSelect = (value: string) => { if (value) { @@ -27,6 +28,7 @@ export function SwitchSpace({ spaceName, spaceSlug }: SwitchSpaceProps) { position="bottom" withArrow shadow="md" + opened={opened} >