diff --git a/src/components/ScmRepositoryCreateEditPage/ScmRepositoryCreateEditPage.tsx b/src/components/ScmRepositoryCreateEditPage/ScmRepositoryCreateEditPage.tsx index 2f199426..7c9208ce 100644 --- a/src/components/ScmRepositoryCreateEditPage/ScmRepositoryCreateEditPage.tsx +++ b/src/components/ScmRepositoryCreateEditPage/ScmRepositoryCreateEditPage.tsx @@ -68,7 +68,7 @@ export const ScmRepositoryCreateEditPage = ({ isEditPage = false }: IScmReposito // edit page - patch method const serviceContainerEditPagePatch = useServiceContainer(scmRepositoryApi.patchScmRepository); - const { register, setFieldValues, getFieldState, getFieldErrors, handleSubmit, isSubmitDisabled } = useForm(); + const { register, setFieldValues, getFieldState, getFieldErrors, handleSubmit, isSubmitDisabled, hasFormChanged } = useForm(); useTitle( generatePageTitle({ @@ -230,7 +230,11 @@ export const ScmRepositoryCreateEditPage = ({ isEditPage = false }: IScmReposito /> - {scmCreatingFinished?.id && (