Commit cb4c0713bcbfcab497a2f7c5f886585663a1cf95
1 parent
f3254488
UI: Fix entity component isAdd flag
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -58,7 +58,7 @@ export abstract class EntityComponent<T extends BaseData<HasId>, | @@ -58,7 +58,7 @@ export abstract class EntityComponent<T extends BaseData<HasId>, | ||
58 | } | 58 | } |
59 | 59 | ||
60 | get isAdd(): boolean { | 60 | get isAdd(): boolean { |
61 | - return this.entityValue && !this.entityValue.id; | 61 | + return this.entityValue && (!this.entityValue.id || !this.entityValue.id.id); |
62 | } | 62 | } |
63 | 63 | ||
64 | @Input() | 64 | @Input() |