forked from AkkomaGang/akkoma-fe
fix user search
This commit is contained in:
parent
ac46de3972
commit
de03eda9f3
1 changed files with 7 additions and 1 deletions
|
@ -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 a new issue