Browse Source
Merge pull request #12897 from ArtemDzhereleiko/AD/bug-fix/entity-autocomplete-update-list
Fixed entity autocomplete
pull/12927/head
Igor Kulikov
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
ui-ngx/src/app/shared/components/entity/entity-autocomplete.component.ts
|
|
|
@ -391,7 +391,7 @@ export class EntityAutocompleteComponent implements ControlValueAccessor, OnInit |
|
|
|
private updateView(value: string | EntityId | null, entity: BaseData<EntityId> | null) { |
|
|
|
if (!isEqual(this.modelValue, value)) { |
|
|
|
this.modelValue = value; |
|
|
|
this.entityURL = !entity ? '' : getEntityDetailsPageURL(entity.id.id, entity.id.entityType as EntityType); |
|
|
|
this.entityURL = (typeof entity === 'string' || !entity) ? '' : getEntityDetailsPageURL(entity.id.id, entity.id.entityType as EntityType); |
|
|
|
this.propagateChange(this.modelValue); |
|
|
|
this.entityChanged.emit(entity); |
|
|
|
} |
|
|
|
|