mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
feature: sum fail fix
This commit is contained in:
parent
9fe882b39b
commit
026cd97a57
@ -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'
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user