fix: Throwing error when click load more conversation (#4049)

This commit is contained in:
Sivin Varghese
2022-02-23 16:48:53 +05:30
committed by GitHub
parent eb0da2026f
commit 9059f5906a

View File

@@ -219,7 +219,7 @@ export default {
folders: 'customViews/getCustomViews', folders: 'customViews/getCustomViews',
}), }),
hasAppliedFilters() { hasAppliedFilters() {
return this.appliedFilters.length; return this.appliedFilters.length !== 0;
}, },
hasActiveFolders() { hasActiveFolders() {
return this.activeFolder && this.foldersId !== 0; return this.activeFolder && this.foldersId !== 0;
@@ -460,7 +460,8 @@ export default {
if (this.hasActiveFolders) { if (this.hasActiveFolders) {
const payload = this.activeFolder.query; const payload = this.activeFolder.query;
this.fetchSavedFilteredConversations(payload); this.fetchSavedFilteredConversations(payload);
} else { }
if (this.hasAppliedFilters) {
this.fetchFilteredConversations(this.appliedFilters); this.fetchFilteredConversations(this.appliedFilters);
} }
}, },