Apply 15 suggestion(s) to 7 file(s)

Co-authored-by: HJ <30-hj@users.noreply.git.pleroma.social>
This commit is contained in:
Lucy 2025-07-27 18:44:18 +00:00 committed by luce
commit 138dc71b9f
7 changed files with 4 additions and 21 deletions

View file

@ -57,14 +57,12 @@ const adminSettingsStorage = {
},
resetAdminDraft (state) {
state.draft = cloneDeep(state.config)
},
}
},
actions: {
async fetchAdminUsers (store, opts) {
const users = await store.rootState.api.backendInteractor.adminListUsers({opts})
//await Promise.all(
users.map(user => store.dispatch('fetchUserIfMissing', user.id))
//)
users.forEach(user => store.dispatch('fetchUserIfMissing', user.id))
return users
},
adminAddUserToAdminGroup (store, user) {