From 0865f63583cb0796dddb1be25c7e02c7d1adb1cc Mon Sep 17 00:00:00 2001 From: ogerly Date: Wed, 15 Apr 2020 16:30:13 +0200 Subject: [PATCH] feature: incorrect calculation of the total all search results fixed --- webapp/components/_new/features/SearchResults/SearchResults.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webapp/components/_new/features/SearchResults/SearchResults.vue b/webapp/components/_new/features/SearchResults/SearchResults.vue index c2b3293b5..5ebd0cad6 100644 --- a/webapp/components/_new/features/SearchResults/SearchResults.vue +++ b/webapp/components/_new/features/SearchResults/SearchResults.vue @@ -203,6 +203,7 @@ export default { update({ searchPosts }) { this.posts = searchPosts.posts this.postCount = searchPosts.postCount + this.searchCount = this.postCount + this.userCount + this.hashtagCount if (this.postCount > 0) this.activeTab = 'Post' }, fetchPolicy: 'cache-and-network', @@ -225,6 +226,7 @@ export default { update({ searchUsers }) { this.users = searchUsers.users this.userCount = searchUsers.userCount + this.searchCount = this.postCount + this.userCount + this.hashtagCount if (this.postCount === 0 && this.userCount > 0) this.activeTab = 'User' }, fetchPolicy: 'cache-and-network',