From 9059f5906ad665499cc31d5bca7962faa56b20d7 Mon Sep 17 00:00:00 2001 From: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> Date: Wed, 23 Feb 2022 16:48:53 +0530 Subject: [PATCH] fix: Throwing error when click load more conversation (#4049) --- app/javascript/dashboard/components/ChatList.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/javascript/dashboard/components/ChatList.vue b/app/javascript/dashboard/components/ChatList.vue index 4173ed438..deb0276bf 100644 --- a/app/javascript/dashboard/components/ChatList.vue +++ b/app/javascript/dashboard/components/ChatList.vue @@ -219,7 +219,7 @@ export default { folders: 'customViews/getCustomViews', }), hasAppliedFilters() { - return this.appliedFilters.length; + return this.appliedFilters.length !== 0; }, hasActiveFolders() { return this.activeFolder && this.foldersId !== 0; @@ -460,7 +460,8 @@ export default { if (this.hasActiveFolders) { const payload = this.activeFolder.query; this.fetchSavedFilteredConversations(payload); - } else { + } + if (this.hasAppliedFilters) { this.fetchFilteredConversations(this.appliedFilters); } },