Skip to content
Snippets Groups Projects
Commit d5e5712b authored by Angelina Filippova's avatar Angelina Filippova
Browse files

Apply suggestion to src/store/modules/users.js

parent c5ed314b
No related branches found
No related tags found
1 merge request!26Remove deleted users
This commit is part of merge request !26. Comments created here will be created in the context of that merge request.
......@@ -67,7 +67,7 @@ const users = {
},
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 !== data)
const users = state.fetchedUsers.filter(user => user.nickname !== nickname)
commit('SET_USERS', users)
},
async FetchUsers({ commit, state, getters }, { page }) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment