diff --git a/ui-ngx/src/app/shared/components/entity/entity-select.component.ts b/ui-ngx/src/app/shared/components/entity/entity-select.component.ts index 5671e9de3b..8d32cc7c17 100644 --- a/ui-ngx/src/app/shared/components/entity/entity-select.component.ts +++ b/ui-ngx/src/app/shared/components/entity/entity-select.component.ts @@ -139,7 +139,7 @@ export class EntitySelectComponent implements ControlValueAccessor, OnInit, Afte }; } this.entitySelectFormGroup.get('entityType').patchValue(this.modelValue.entityType, {emitEvent: false}); - this.entitySelectFormGroup.get('entityId').patchValue(this.modelValue.id, {emitEvent: false}); + this.entitySelectFormGroup.get('entityId').patchValue(this.modelValue, {emitEvent: false}); } updateView(entityType: EntityType | AliasEntityType | null, entityId: string | null) {