Fixed error notification on fail project member deletion. (#2148)

This commit is contained in:
Bogdan Artemenko 2019-06-07 13:56:07 +03:00 committed by GitHub
parent 43d4f3daf5
commit 30784484c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;