fix user search

This commit is contained in:
Henry Jameson 2019-06-17 23:39:30 +03:00
parent ac46de3972
commit de03eda9f3
1 changed files with 7 additions and 1 deletions

View File

@ -356,7 +356,13 @@ const users = {
},
searchUsers (store, query) {
// TODO: Move userSearch api into api.service
return userSearchApi.search({query, store: { state: store.rootState }})
return userSearchApi.search({
query,
store: {
state: store.rootState,
getters: store.rootGetters
}
})
.then((users) => {
store.commit('addNewUsers', users)
return users