Merge branch 'fix-user-search' into 'develop'
fix user search See merge request pleroma/pleroma-fe!839
This commit is contained in:
commit
c0c012ccf9
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue