fix on table-of-content validation - trigger on finalization

This commit is contained in:
Sofia Papacharalampous 2024-04-24 12:04:46 +03:00
parent 434a207ac3
commit 649e08a755
1 changed files with 1 additions and 0 deletions

View File

@ -1268,6 +1268,7 @@ export class DescriptionEditorComponent extends BaseEditor<DescriptionEditorMode
finalize() { finalize() {
this.formService.removeAllBackEndErrors(this.formGroup); this.formService.removeAllBackEndErrors(this.formGroup);
this.formService.touchAllFormFields(this.formGroup); this.formService.touchAllFormFields(this.formGroup);
this.tocValidationService.validateForm();
if (!this.isFormValid()) { if (!this.isFormValid()) {
this.dialog.open(FormValidationErrorsDialogComponent, { this.dialog.open(FormValidationErrorsDialogComponent, {
data: { data: {