We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e47f6aa + 1856635 commit 3792e01Copy full SHA for 3792e01
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