Skip to content

Commit 16123af

Browse files
committed
Only draw chart on crates page once Google Charts has been loaded.
1 parent 333dfe7 commit 16123af

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/components/download-graph.js

+3
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ export default Component.extend({
7272

7373
let show = data && window.google && window.googleChartsLoaded;
7474
this.element.style.display = show ? '' : 'none';
75+
if (!show) {
76+
return;
77+
}
7578

7679
let myData = window.google.visualization.arrayToDataTable(data);
7780

0 commit comments

Comments
 (0)