File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.concurrency Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -164,12 +164,12 @@ export const action = async ({ request, params }: ActionFunctionArgs) => {
164164 ) ;
165165
166166 if ( error ) {
167- submission . error . amount = [ error instanceof Error ? error . message : "Unknown error" ] ;
167+ submission . error . environments = [ error instanceof Error ? error . message : "Unknown error" ] ;
168168 return json ( submission ) ;
169169 }
170170
171171 if ( ! result . success ) {
172- submission . error . amount = [ result . error ] ;
172+ submission . error . environments = [ result . error ] ;
173173 return json ( submission ) ;
174174 }
175175
@@ -324,7 +324,7 @@ function Upgradable({
324324 extraConcurrency = { extraConcurrency }
325325 extraUnallocatedConcurrency = { extraUnallocatedConcurrency }
326326 maxQuota = { maxQuota }
327- disabled = { allocationModified }
327+ disabled = { unallocated < 0 ? false : allocationModified }
328328 />
329329 </ div >
330330 < Table >
@@ -423,6 +423,7 @@ function Upgradable({
423423 </ TableRow >
424424 </ TableBody >
425425 </ Table >
426+ < FormError id = { formEnvironments . id } > { formEnvironments . error } </ FormError >
426427 </ div >
427428 < Form className = "flex flex-col gap-2" method = "post" { ...form . props } id = "allocate" >
428429 < input type = "hidden" name = "action" value = "allocate" />
@@ -489,7 +490,6 @@ function Upgradable({
489490 ) ) }
490491 </ TableBody >
491492 </ Table >
492- < FormError id = { formEnvironments . errorId } > { formEnvironments . error } </ FormError >
493493 </ Form >
494494 </ div >
495495 </ div >
You can’t perform that action at this time.
0 commit comments