File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
apps/webapp/app/routes/_app.orgs.$organizationSlug_.projects.new Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -108,12 +108,13 @@ export const action: ActionFunction = async ({ request, params }) => {
108
108
} ;
109
109
110
110
export default function NewOrganizationPage ( ) {
111
- const { organization, defaultVersion } = useTypedLoaderData < typeof loader > ( ) ;
111
+ const { organization } = useTypedLoaderData < typeof loader > ( ) ;
112
112
const lastSubmission = useActionData ( ) ;
113
- const { v3Enabled } = useFeatures ( ) ;
113
+ const { v3Enabled, isManagedCloud } = useFeatures ( ) ;
114
114
115
115
const canCreateV3Projects = organization . v3Enabled && v3Enabled ;
116
- const canCreateProjects = organization . v2Enabled || canCreateV3Projects ;
116
+ const canCreateV2Projects = organization . v2Enabled || ! isManagedCloud ;
117
+ const canCreateProjects = canCreateV2Projects || canCreateV3Projects ;
117
118
118
119
if ( ! canCreateProjects ) {
119
120
return (
@@ -159,7 +160,7 @@ export default function NewOrganizationPage() {
159
160
/>
160
161
< FormError id = { projectName . errorId } > { projectName . error } </ FormError >
161
162
</ InputGroup >
162
- { organization . v2Enabled && canCreateV3Projects ? (
163
+ { canCreateV2Projects && canCreateV3Projects ? (
163
164
< InputGroup >
164
165
< Label htmlFor = { projectVersion . id } > Project version</ Label >
165
166
< Select
You can’t perform that action at this time.
0 commit comments