From c7b1d70fbde8bc052560dbd95687adeedc51f7c5 Mon Sep 17 00:00:00 2001 From: Kalutka Zhenya Date: Wed, 4 Aug 2021 17:56:25 +0300 Subject: [PATCH] Refactoring --- .../src/app/modules/home/components/entity/entity.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui-ngx/src/app/modules/home/components/entity/entity.component.ts b/ui-ngx/src/app/modules/home/components/entity/entity.component.ts index 1680201262..8d868eff98 100644 --- a/ui-ngx/src/app/modules/home/components/entity/entity.component.ts +++ b/ui-ngx/src/app/modules/home/components/entity/entity.component.ts @@ -50,6 +50,7 @@ export abstract class EntityComponent, @Input() set isEdit(isEdit: boolean) { this.isEditValue = isEdit; + this.cd.markForCheck(); this.updateFormState(); } @@ -107,7 +108,6 @@ export abstract class EntityComponent, } else { this.entityForm.disable({emitEvent: false}); } - this.cd.markForCheck(); } }