Do not compute filteredUsers if there's no search input
This commit is contained in:
parent
446f99f62a
commit
c19cbd7ffd
@ -81,6 +81,10 @@ export default {
|
|||||||
// filteredUsers is computed, to avoid unnecessary filtering
|
// filteredUsers is computed, to avoid unnecessary filtering
|
||||||
// as it is shared between filtering and keybindings.
|
// as it is shared between filtering and keybindings.
|
||||||
filteredUsers() {
|
filteredUsers() {
|
||||||
|
if (!this.userSearchInput) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
return fuzzyFilter(this.userSearchInput, this.channel.users, {
|
return fuzzyFilter(this.userSearchInput, this.channel.users, {
|
||||||
pre: "<b>",
|
pre: "<b>",
|
||||||
post: "</b>",
|
post: "</b>",
|
||||||
|
Loading…
Reference in New Issue
Block a user