fix: update handleSwitchWorkspace signature to accept null

This commit is contained in:
Usman Baig
2026-01-23 18:52:36 +01:00
parent 390ca429d9
commit e6b66e7f97

View File

@@ -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)