ui fix
This commit is contained in:
parent
5bd1861cc7
commit
cd9a76070a
|
@ -645,7 +645,7 @@ export class DescriptionEditorComponent extends BaseEditor<DescriptionEditorMode
|
|||
this.item.descriptionTemplate = descriptionTemplate;
|
||||
|
||||
const sectionId = this.item.planDescriptionTemplate.sectionId;
|
||||
this.item.planDescriptionTemplate = this.item.plan.planDescriptionTemplates.find(x => 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'));
|
||||
|
||||
|
|
Loading…
Reference in New Issue