Merge branch 'fix-user-search' into 'develop'

fix user search

See merge request pleroma/pleroma-fe!839
This commit is contained in:
Shpuld Shpludson 2019-06-18 16:32:11 +00:00
commit c0c012ccf9
1 changed files with 7 additions and 1 deletions

View File

@ -356,7 +356,13 @@ const users = {
}, },
searchUsers (store, query) { searchUsers (store, query) {
// TODO: Move userSearch api into api.service // 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) => { .then((users) => {
store.commit('addNewUsers', users) store.commit('addNewUsers', users)
return users return users