fix on table-of-content validation - on table-of-content-internal initialization

This commit is contained in:
Sofia Papacharalampous 2024-04-24 12:14:21 +03:00
parent 7f352004ed
commit 7d9a8b3aa1
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ export class TableOfContentsInternal implements OnInit, OnDestroy {
refreshErrorIndicators(): void { refreshErrorIndicators(): void {
this.updatedMap = this.updateMap(this.tocentries, this.parentMap); this.updatedMap = this.updateMap(this.tocentries, this.parentMap);
for (let entry of this.tocentries) { for (let entry of this.tocentries) {
this.tocEntriesStateMap.set(entry.id, false); this.tocEntriesStateMap.set(entry.id, this.hasErrors(entry.id));
this.tocEntriesStateSubscriptions.push( this.tocEntriesStateSubscriptions.push(
this.tocValidationService.validateFormEvent this.tocValidationService.validateFormEvent