mirror of
https://akkoma.dev/AkkomaGang/akkoma-fe.git
synced 2024-11-14 04:24:51 +00:00
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) {
|
||||
// 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
|
||||
|
|
Loading…
Reference in a new issue