Fixed error notification on fail project member deletion. (#2148)
This commit is contained in:
parent
43d4f3daf5
commit
30784484c8
@ -39,9 +39,9 @@ import { PM_ACTIONS, NOTIFICATION_ACTIONS } from '@/utils/constants/actionNames'
|
||||
return member.user.email;
|
||||
});
|
||||
|
||||
const isSuccess = await this.$store.dispatch(PM_ACTIONS.DELETE, projectMemberEmails);
|
||||
const response = await this.$store.dispatch(PM_ACTIONS.DELETE, projectMemberEmails);
|
||||
|
||||
if (!isSuccess) {
|
||||
if (!response.isSuccess) {
|
||||
this.$store.dispatch(NOTIFICATION_ACTIONS.ERROR, 'Error while deleting users from team');
|
||||
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user