Skip to content

Commit ee3b5a7

Browse files
authored
[dashboard] don't show add org in dedicated (#19769)
1 parent 6092a9c commit ee3b5a7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/dashboard/src/menu/OrganizationSelector.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,10 @@ export default function OrganizationSelector() {
2727
const getOrgURL = useGetOrgURL();
2828
const configurationsAndPrebuilds = useHasConfigurationsAndPrebuildsEnabled();
2929
const showPrebuildMenuItem = useFeatureFlag("showPrebuildsMenuItem");
30+
const isDedicated = useFeatureFlag("enableDedicatedOnboardingFlow");
3031

3132
// we should have an API to ask for permissions, until then we duplicate the logic here
32-
const canCreateOrgs = user && !isOrganizationOwned(user);
33+
const canCreateOrgs = user && !isOrganizationOwned(user) && !isDedicated;
3334

3435
const userFullName = user?.name || "...";
3536

0 commit comments

Comments
 (0)