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