Merge pull request #11975 from ArtemDzhereleiko/AD/bug-fix/decline-entity-select

Fixed entity select
This commit is contained in:
Igor Kulikov 2024-11-01 18:51:41 +02:00 committed by GitHub
commit 488e50f49b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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) {