From c19cbd7ffd3d22a03a79da9e40ea8c5774cad6eb Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Wed, 27 Nov 2019 19:56:21 +0200 Subject: [PATCH] Do not compute filteredUsers if there's no search input --- client/components/ChatUserList.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/components/ChatUserList.vue b/client/components/ChatUserList.vue index 890b83fc..3dea252c 100644 --- a/client/components/ChatUserList.vue +++ b/client/components/ChatUserList.vue @@ -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: "", post: "",