We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91ce55e commit 1856635Copy full SHA for 1856635
apps/sim/app/workspace/[workspaceId]/layout.tsx
@@ -13,7 +13,8 @@ import { getOrgWhitelabelSettings } from '@/ee/whitelabeling/org-branding'
13
14
export default async function WorkspaceLayout({ children }: { children: React.ReactNode }) {
15
const session = await getSession()
16
- const orgId = session?.session?.activeOrganizationId
+ // The organization plugin is conditionally spread so TS can't infer activeOrganizationId on the base session type.
17
+ const orgId = (session?.session as { activeOrganizationId?: string } | null)?.activeOrganizationId
18
const initialOrgSettings = orgId ? await getOrgWhitelabelSettings(orgId) : null
19
20
return (
0 commit comments