mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-28 12:11:08 -04:00
refactor dashboard actions and send email actions
This commit is contained in:
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user