mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
correct it so we always load Chart just before creating it
This commit is contained in:
@@ -1,9 +1,5 @@
|
||||
import loadScript from "discourse/lib/load-script";
|
||||
|
||||
export default Discourse.Route.extend({
|
||||
activate() {
|
||||
loadScript("/javascripts/Chart.min.js").then(() => {
|
||||
this.controllerFor('admin-dashboard-next').fetchDashboard();
|
||||
});
|
||||
this.controllerFor('admin-dashboard-next').fetchDashboard();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user