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

@ -31,7 +31,9 @@ export default {
[types.UPDATE_INVOICE_STATUS] (state, data) {
let pos = state.invoices.findIndex(invoice => invoice.id === data.id)
state.invoices[pos].status = data.status
if (state.invoices[pos]) {
state.invoices[pos].status = data.status
}
},
[types.RESET_SELECTED_INVOICES] (state, data) {