Display User objects in search results
This commit is contained in:
parent
266aee2c6b
commit
aea833ec87
4 changed files with 141 additions and 2 deletions
|
@ -63,7 +63,8 @@ class UserEntity extends Entity {
|
|||
}
|
||||
|
||||
matches(queryString) {
|
||||
return this.model.displayName.toLowerCase().indexOf(queryString.toLowerCase()) === 0;
|
||||
var name = this.model.displayName || this.model.userId;
|
||||
return name.toLowerCase().indexOf(queryString.toLowerCase()) === 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue