forked from AkkomaGang/admin-fe
Merge branch 'fix/fix-user-deletion' into 'master'
Fix user deletion by changing variable name See merge request pleroma/admin-fe!27
This commit is contained in:
commit
031ae4ce57
1 changed files with 3 additions and 3 deletions
|
@ -68,9 +68,9 @@ const users = {
|
|||
await createNewAccount(nickname, email, password, getters.authHost, getters.token)
|
||||
dispatch('FetchUsers', { page: state.currentPage })
|
||||
},
|
||||
async DeleteUser({ commit, dispatch, getters, state }, user) {
|
||||
const { nickname } = await deleteUser(user.nickname, getters.authHost, getters.token)
|
||||
const users = state.fetchedUsers.filter(user => user.nickname !== nickname)
|
||||
async DeleteUser({ commit, getters, state }, user) {
|
||||
const { data } = await deleteUser(user.nickname, getters.authHost, getters.token)
|
||||
const users = state.fetchedUsers.filter(user => user.nickname !== data)
|
||||
commit('SET_USERS', users)
|
||||
},
|
||||
async FetchUsers({ commit, state, getters }, { page }) {
|
||||
|
|
Loading…
Reference in a new issue