Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix: self hosted cmdk organizations (#47308)

hallidayo7cbd540681af
diff --git a/apps/studio/components/interfaces/App/CommandMenu/OrgProjectSwitcher.tsx b/apps/studio/components/interfaces/App/CommandMenu/OrgProjectSwitcher.tsx
index 381f2ef20f0..83858b32941 100644
--- a/apps/studio/components/interfaces/App/CommandMenu/OrgProjectSwitcher.tsx
+++ b/apps/studio/components/interfaces/App/CommandMenu/OrgProjectSwitcher.tsx
@@ -79,7 +79,7 @@ export function useConfigureOrganizationCommand() {
},
],
},
- { deps: [organizations], enabled: !!organizations && organizations.length > 0 }
+ { deps: [organizations], enabled: IS_PLATFORM && !!organizations && organizations.length > 0 }
)
useRegisterCommands(
@@ -93,6 +93,6 @@ export function useConfigureOrganizationCommand() {
icon: () => <Building />,
},
],
- { enabled: !!organizations && organizations.length > 0 }
+ { enabled: IS_PLATFORM && !!organizations && organizations.length > 0 }
)
}