Skip to content

Commit 2291c56

Browse files
committed
Update CreateManagedControlPlaneWizardContainer.tsx
1 parent d0dfd22 commit 2291c56

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/components/Wizards/CreateManagedControlPlane/CreateManagedControlPlaneWizardContainer.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,8 @@ export const CreateManagedControlPlaneWizardContainer: FC<CreateManagedControlPl
171171
summarize: isEditMode ? t('buttons.update') : t('buttons.create'),
172172
success: t('buttons.close'),
173173
}),
174+
175+
// eslint-disable-next-line react-hooks/exhaustive-deps
174176
[t],
175177
);
176178

@@ -202,7 +204,7 @@ export const CreateManagedControlPlaneWizardContainer: FC<CreateManagedControlPl
202204
const { trigger: triggerUpdate } = useApiResourceMutation<CreateManagedControlPlaneType>(
203205
UpdateManagedControlPlaneResource(projectName, workspaceName, initialData?.metadata?.name ?? ''),
204206
undefined,
205-
!!isOnMcpPage,
207+
isOnMcpPage,
206208
);
207209
const componentsList = watch('componentsList');
208210

@@ -260,6 +262,7 @@ export const CreateManagedControlPlaneWizardContainer: FC<CreateManagedControlPl
260262
return false;
261263
}
262264
},
265+
// eslint-disable-next-line react-hooks/exhaustive-deps
263266
[trigger, projectName, workspaceName, componentsList, templateAffixes],
264267
);
265268

@@ -379,6 +382,7 @@ export const CreateManagedControlPlaneWizardContainer: FC<CreateManagedControlPl
379382
}
380383
});
381384
return selection;
385+
// eslint-disable-next-line react-hooks/exhaustive-deps
382386
}, [isEditMode]);
383387

384388
// Prefill form when editing
@@ -404,6 +408,7 @@ export const CreateManagedControlPlaneWizardContainer: FC<CreateManagedControlPl
404408
members,
405409
componentsList: componentsList ?? [],
406410
});
411+
// eslint-disable-next-line react-hooks/exhaustive-deps
407412
}, [isOpen, isEditMode]);
408413

409414
const normalizeMemberKind = useCallback((kindInput?: string | null) => {

0 commit comments

Comments
 (0)