Skip to content

Commit fae4553

Browse files
committed
Import from lodash; window._ seems gone since the ember upgrade?
1 parent ca72bb4 commit fae4553

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/components/download-graph.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import Ember from 'ember';
2+
import _ from 'lodash';
23

34
export default Ember.Component.extend({
45
classNames: 'graph-data',
@@ -111,7 +112,7 @@ export default Ember.Component.extend({
111112
// Walk over the headers/colums in reverse order, as the newest version
112113
// is at the end, but in the UI we want it at the top of the chart legend.
113114

114-
window._.range(headers.length - 1, 0, -1).forEach((dataCol, i) => {
115+
_.range(headers.length - 1, 0, -1).forEach((dataCol, i) => {
115116
columns.push(dataCol); // add the column itself
116117
columns.push({ // add a 'calculated' column, the moving average
117118
type: 'number',

0 commit comments

Comments
 (0)