From cb4c0713bcbfcab497a2f7c5f886585663a1cf95 Mon Sep 17 00:00:00 2001 From: Igor Kulikov Date: Tue, 8 Sep 2020 12:26:17 +0300 Subject: [PATCH] UI: Fix entity component isAdd flag --- .../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 68e4ccc41e..72efaf8d45 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 @@ -58,7 +58,7 @@ export abstract class EntityComponent, } get isAdd(): boolean { - return this.entityValue && !this.entityValue.id; + return this.entityValue && (!this.entityValue.id || !this.entityValue.id.id); } @Input()