Fix: loading previous data

This commit is contained in:
sharifcse57
2023-02-13 09:23:54 +06:00
parent a7ef61652e
commit e50a3777fd
@@ -142,6 +142,8 @@ export default {
},
watch: {
rateHistory: function(newVal) {
this.chartLebels = [];
this.chartData = [];
for (var i = 0; i < newVal.length; i++) {
this.chartLebels.push(newVal[i].created_at.split("-")[0]);
this.chartData.push(newVal[i]["rate"]);