UI: Fixed entity autocomplete
This commit is contained in:
		
							parent
							
								
									e4123446d7
								
							
						
					
					
						commit
						e81e248bf2
					
				@ -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);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user