File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/features/instance/applications/new Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ export function CreateNewApplicationForm({
4242 } ,
4343 } ) ;
4444
45- const { mutate : createNewApplication } = useCreateComponentMutation ( ) ;
45+ const { mutate : createNewApplication , isPending : isCreateNewApplicationPending } = useCreateComponentMutation ( ) ;
4646 const submitForm = ( formData : CreateComponentFormData ) => {
4747 createNewApplication ( { ...formData , ...instanceParams } , {
4848 onSuccess : ( ) => {
@@ -72,7 +72,7 @@ export function CreateNewApplicationForm({
7272 className = "w-full"
7373 variant = "submit"
7474 type = "submit"
75- disabled = { ! form . formState . isDirty || isRestartPending }
75+ disabled = { ! form . formState . isDirty || isCreateNewApplicationPending || isRestartPending }
7676 >
7777 Create < ArrowRight />
7878 </ Button >
You can’t perform that action at this time.
0 commit comments