From 026cd97a573d35948bb8d2dc47e8cb490aa3cc9b Mon Sep 17 00:00:00 2001 From: ogerly Date: Wed, 15 Apr 2020 11:27:29 +0200 Subject: [PATCH] feature: sum fail fix --- .../components/_new/features/SearchResults/SearchResults.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webapp/components/_new/features/SearchResults/SearchResults.vue b/webapp/components/_new/features/SearchResults/SearchResults.vue index 8a34058de..c2b3293b5 100644 --- a/webapp/components/_new/features/SearchResults/SearchResults.vue +++ b/webapp/components/_new/features/SearchResults/SearchResults.vue @@ -204,7 +204,6 @@ export default { this.posts = searchPosts.posts this.postCount = searchPosts.postCount if (this.postCount > 0) this.activeTab = 'Post' - this.searchCount = ( this.postCount + this.userCount + this.hashtagCount ) }, fetchPolicy: 'cache-and-network', }, @@ -248,6 +247,8 @@ export default { update({ searchHashtags }) { this.hashtags = searchHashtags.hashtags this.hashtagCount = searchHashtags.hashtagCount + this.searchCount = this.postCount + this.userCount + this.hashtagCount + if (this.postCount === 0 && this.userCount === 0 && this.hashtagCount > 0) this.activeTab = 'Hashtag' },