Fix entity autocomplete

This commit is contained in:
Igor Kulikov 2021-05-27 19:22:22 +03:00
parent 6112836edc
commit fa8a47a59f

View File

@ -309,7 +309,7 @@ export class EntityAutocompleteComponent implements ControlValueAccessor, OnInit
this.selectEntityFormGroup.get('entity').patchValue('', {emitEvent: false});
}
updateView(value: string | EntityId | null, entity: BaseData<EntityId> | null) {
updateView(value: string | null, entity: BaseData<EntityId> | null) {
if (!isEqual(this.modelValue, value)) {
this.modelValue = value;
this.propagateChange(this.modelValue);