fix(mixins): Check for chartjs instance before rendering chart

Closes #288
This commit is contained in:
Jakub Juszczak
2018-01-12 13:13:46 +01:00
parent 0506b4ee35
commit 39ff839d92
3 changed files with 550 additions and 482 deletions

View File

@@ -63,6 +63,9 @@ module.exports = {
this.renderChart(this.chartData, this.options)
}
} else {
if (this.$data._chart) {
this.$data._chart.destroy()
}
this.renderChart(this.chartData, this.options)
}
}

View File

@@ -63,6 +63,9 @@ module.exports = {
this.renderChart(this.chartData, this.options)
}
} else {
if (this.$data._chart) {
this.$data._chart.destroy()
}
this.renderChart(this.chartData, this.options)
}
}

1026
yarn.lock

File diff suppressed because it is too large Load Diff