A platform for community discussion. Free, open, simple.
=handle chart loading concurrency issues
Sam6ee0eae33572
diff --git a/app/assets/javascripts/admin/components/dashboard-mini-chart.js.es6 b/app/assets/javascripts/admin/components/dashboard-mini-chart.js.es6index 2e7f58778e6..75029937c65 100644--- a/app/assets/javascripts/admin/components/dashboard-mini-chart.js.es6+++ b/app/assets/javascripts/admin/components/dashboard-mini-chart.js.es6@@ -110,9 +110,13 @@ export default Ember.Component.extend(AsyncReport, {if (this._chart) {this._chart.destroy();+ this._chart = null;}loadScript("/javascripts/Chart.min.js").then(() => {+ if (this._chart) {+ this._chart.destroy();+ }this._chart = new window.Chart(context, this._buildChartConfig(data));});});