1
0
mirror of https://akkoma.dev/lamp/akkoma-fe.git synced 2025-08-03 01:41:51 -04:00

return the correct promise type from action

This commit is contained in:
Shpuld Shpuldson 2020-06-18 13:00:09 +03:00
parent abbad84b00
commit fa7bcb74ce

@ -438,7 +438,7 @@ const users = {
searchUsers ({ rootState, commit }, { query }) {
// Don't fetch if this query was already done recently
if (rootState.users.recentQueries.includes(query)) {
return []
return Promise.resolve([])
}
return rootState.api.backendInteractor.searchUsers({ query })
.then((users) => {