From 093de332f3dccd382a853c1d71f83b32a74ff724 Mon Sep 17 00:00:00 2001 From: Sofia Papacharalampous Date: Mon, 17 Jun 2024 15:45:48 +0300 Subject: [PATCH] change detection issue when prefilling a description --- .../app/ui/description/editor/description-editor.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 e1175c371..97fcf5c95 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 @@ -166,7 +166,8 @@ export class DescriptionEditorComponent extends BaseEditor x.sectionId == sectionId && x.descriptionTemplateGroupId == result.descriptionTemplate.groupId); this.prepareForm(result); - this.changeDetectorRef.markForCheck(); + this.changeDetectorRef.markForCheck(); // when prefilling a description the "prepareForm" has already being executed from the base-editor and we need to trigger the angular's change-detector manually + this.descriptionFormService.detectChanges(true); } }) }