I have a function called when i am trying to update the date but i am getting an error
updateDate(value, id){
let data = [...this.preauthenticationdata];
const index = data.findIndex(row => row.id == id)
data[index].dateInput = value
this.keyInputDate++
this.SET_ppreauthenticationdata(data);
}
i a trying to call this on the following
@input="updateDate($event, props.row.id)"
the issue is i am getting an error
Error: [vuex] do not mutate vuex store state outside mutation handlers.
what is wrong i am doing here
i have updated the code above as to what i am doing and why it is throwing me an error