From 7d9a8b3aa1d03659b8d093a0afabebf434da6f82 Mon Sep 17 00:00:00 2001 From: Sofia Papacharalampous Date: Wed, 24 Apr 2024 12:14:21 +0300 Subject: [PATCH] fix on table-of-content validation - on table-of-content-internal initialization --- .../table-of-contents-internal/table-of-contents-internal.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dmp-frontend/src/app/ui/description/editor/table-of-contents/table-of-contents-internal/table-of-contents-internal.ts b/dmp-frontend/src/app/ui/description/editor/table-of-contents/table-of-contents-internal/table-of-contents-internal.ts index e191fed12..42f076dea 100644 --- a/dmp-frontend/src/app/ui/description/editor/table-of-contents/table-of-contents-internal/table-of-contents-internal.ts +++ b/dmp-frontend/src/app/ui/description/editor/table-of-contents/table-of-contents-internal/table-of-contents-internal.ts @@ -90,7 +90,7 @@ export class TableOfContentsInternal implements OnInit, OnDestroy { refreshErrorIndicators(): void { this.updatedMap = this.updateMap(this.tocentries, this.parentMap); 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.tocValidationService.validateFormEvent