From 9ac14c5393e6e8c371bd8456fd752546bd5a8cba Mon Sep 17 00:00:00 2001 From: Sofia Papacharalampous Date: Tue, 11 Jun 2024 13:42:35 +0300 Subject: [PATCH] bug fix --- .../editor/table-of-contents/table-of-contents.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dmp-frontend/src/app/ui/description/editor/table-of-contents/table-of-contents.component.ts b/dmp-frontend/src/app/ui/description/editor/table-of-contents/table-of-contents.component.ts index a1e2093a6..7ef7dd147 100644 --- a/dmp-frontend/src/app/ui/description/editor/table-of-contents/table-of-contents.component.ts +++ b/dmp-frontend/src/app/ui/description/editor/table-of-contents/table-of-contents.component.ts @@ -222,7 +222,7 @@ export class TableOfContentsComponent extends BaseComponent implements OnInit, O type: ToCEntryType.Section, ordinal: item.ordinal, visibilityRuleKey: item.id, - validityAbstractControl: this.formGroup.get('fieldSets').get(item.id), + validityAbstractControl: this.formGroup.get('fieldSets')?.get(item.id), } } @@ -239,7 +239,7 @@ export class TableOfContentsComponent extends BaseComponent implements OnInit, O type: ToCEntryType.FieldSet, ordinal: item.ordinal, visibilityRuleKey: item.id, - validityAbstractControl: this.formGroup.get('fieldSets').get(item.id), + validityAbstractControl: this.formGroup.get('fieldSets')?.get(item.id), isLastEntry: nextEntry == null, isFirstEntry: previousEntry == null , previousEntry: previousEntry,