Chartjs-Vue watch not noticing changes on component prop

1👍

Please check this – Vue cannot detect the changes to an array if you using it like

this.withDocCostTotals[years - 1] = value;

you should use Vue.set:

Vue.set(this.withDocCostTotals, years - 1, value);

Leave a comment