mirror of
https://github.com/thelounge/thelounge
synced 2024-11-23 04:23:13 +00:00
Merge pull request #3536 from thelounge/xpaw/no-compute-filtered
Do not compute filteredUsers if there's no search input
This commit is contained in:
commit
45f2576e96
1 changed files with 4 additions and 0 deletions
|
@ -81,6 +81,10 @@ export default {
|
|||
// filteredUsers is computed, to avoid unnecessary filtering
|
||||
// as it is shared between filtering and keybindings.
|
||||
filteredUsers() {
|
||||
if (!this.userSearchInput) {
|
||||
return;
|
||||
}
|
||||
|
||||
return fuzzyFilter(this.userSearchInput, this.channel.users, {
|
||||
pre: "<b>",
|
||||
post: "</b>",
|
||||
|
|
Loading…
Reference in a new issue