refactor dashboard actions and send email actions

This commit is contained in:
Jay_Makwana
2019-11-18 19:41:31 +05:30
parent 4a8ac36b3a
commit 94d48c76b8
12 changed files with 93 additions and 130 deletions

View File

@@ -40,7 +40,9 @@ export default {
[types.UPDATE_ESTIMATE_STATUS] (state, data) {
let pos = state.estimates.findIndex(estimate => estimate.id === data.id)
state.estimates[pos].status = data.status
if (state.estimates[pos]) {
state.estimates[pos].status = data.status
}
},
[types.RESET_SELECTED_ESTIMATES] (state, data) {