Browse Source

UI: Fix entity component isAdd flag

pull/3477/head
Igor Kulikov 6 years ago
parent
commit
cb4c0713bc
  1. 2
      ui-ngx/src/app/modules/home/components/entity/entity.component.ts

2
ui-ngx/src/app/modules/home/components/entity/entity.component.ts

@ -58,7 +58,7 @@ export abstract class EntityComponent<T extends BaseData<HasId>,
}
get isAdd(): boolean {
return this.entityValue && !this.entityValue.id;
return this.entityValue && (!this.entityValue.id || !this.entityValue.id.id);
}
@Input()

Loading…
Cancel
Save