From cd9a76070aea5e606171c1def24603ee7645f3c7 Mon Sep 17 00:00:00 2001 From: amentis Date: Tue, 16 Jul 2024 15:31:32 +0300 Subject: [PATCH] ui fix --- .../app/ui/description/editor/description-editor.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/ui/description/editor/description-editor.component.ts b/frontend/src/app/ui/description/editor/description-editor.component.ts index fd2ab39ce..c08a43f3f 100644 --- a/frontend/src/app/ui/description/editor/description-editor.component.ts +++ b/frontend/src/app/ui/description/editor/description-editor.component.ts @@ -645,7 +645,7 @@ export class DescriptionEditorComponent extends BaseEditor x.sectionId == sectionId && x.descriptionTemplateGroupId == descriptionTemplate.groupId); + this.item.planDescriptionTemplate = this.item.plan.planDescriptionTemplates.find(x => x.sectionId == sectionId && x.descriptionTemplateGroupId == descriptionTemplate.groupId && x.isActive === IsActive.Active); this.formGroup.get('planDescriptionTemplateId').setValue(this.item.planDescriptionTemplate.id); if (descriptionTemplate.definition) this.visibilityRulesService.setContext(this.item.descriptionTemplate.definition, this.formGroup.get('properties'));