From e6b66e7f970a76b5f48905474274d09cb5c269a0 Mon Sep 17 00:00:00 2001 From: Usman Baig Date: Fri, 23 Jan 2026 18:52:36 +0100 Subject: [PATCH] fix: update handleSwitchWorkspace signature to accept null --- app/layout-content.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/layout-content.tsx b/app/layout-content.tsx index 9415038..012425c 100644 --- a/app/layout-content.tsx +++ b/app/layout-content.tsx @@ -22,7 +22,8 @@ export default function LayoutContent({ children }: { children: React.ReactNode } }, [auth.user]) - const handleSwitchWorkspace = async (orgId: string) => { + const handleSwitchWorkspace = async (orgId: string | null) => { + if (!orgId) return // Pulse doesn't support personal workspace try { const { access_token } = await switchContext(orgId) await setSessionAction(access_token)