mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
feature: incorrect calculation of the total all search results fixed
This commit is contained in:
parent
026cd97a57
commit
0865f63583
@ -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',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user