Do not fetch user profile when deleting multiple accounts
This commit is contained in:
parent
f8dbcb80ab
commit
434f8ad2dd
1 changed files with 3 additions and 1 deletions
|
@ -197,7 +197,9 @@ const users = {
|
|||
const updatedUsers = state.fetchedUsers.filter(user => !deletedUsersIds.includes(user.id))
|
||||
commit('SET_USERS', updatedUsers)
|
||||
|
||||
dispatch('FetchUserProfile', { userId: _userId, godmode: false })
|
||||
if (_userId) {
|
||||
dispatch('FetchUserProfile', { userId: _userId, godmode: false })
|
||||
}
|
||||
dispatch('SuccessMessage')
|
||||
},
|
||||
async FetchUsers({ commit, dispatch, getters, state }, { page }) {
|
||||
|
|
Loading…
Reference in a new issue