diff --git a/dmp-frontend/src/app/ui/description/editor/description-editor.component.ts b/dmp-frontend/src/app/ui/description/editor/description-editor.component.ts index 812617bff..8c45dc0f2 100644 --- a/dmp-frontend/src/app/ui/description/editor/description-editor.component.ts +++ b/dmp-frontend/src/app/ui/description/editor/description-editor.component.ts @@ -628,6 +628,7 @@ export class DescriptionEditorComponent extends BaseEditor this.prepareForm(data)); + this.tocValidationService.validateForm(); } refreshOnNavigateToData(id?: Guid): void { @@ -648,8 +649,7 @@ export class DescriptionEditorComponent extends BaseEditor { - onSuccess ? onSuccess(complete) : this.onCallbackSuccess(complete, this.isNew); - this.tocValidationService.validateForm(); + onSuccess ? onSuccess(complete) : this.onCallbackSuccess(complete); this.descriptionIsOnceSaved = true; if (this.formGroup.get('status').value == DescriptionStatus.Finalized) this.isFinalized = true; }, diff --git a/dmp-frontend/src/common/base/base-editor.ts b/dmp-frontend/src/common/base/base-editor.ts index bdb75ae82..c66599d13 100644 --- a/dmp-frontend/src/common/base/base-editor.ts +++ b/dmp-frontend/src/common/base/base-editor.ts @@ -109,12 +109,12 @@ export abstract class BaseEditor