diff --git a/frontend/routes/index.js b/frontend/routes/index.js index 858e112..d2c9b21 100644 --- a/frontend/routes/index.js +++ b/frontend/routes/index.js @@ -18,7 +18,7 @@ module.exports = function (webinterface) { data = viewableModules.map(function (module) { return module.attributes; }), - dataMap = _.object(ids, data); + dataMap = _.zipObject(ids, data); res.render('index', { title: app.title, diff --git a/lib/views/aggregatedMiners.js b/lib/views/aggregatedMiners.js index aa26ad9..3e712ad 100644 --- a/lib/views/aggregatedMiners.js +++ b/lib/views/aggregatedMiners.js @@ -23,7 +23,7 @@ module.exports = View.extend({ .value(); }) .flatten() - .unique() + .uniq() .map(function (minerId, it) { return { attr: 'currentHashrate.' + minerId, diff --git a/lib/views/mixins/renderHistoricalDataGraph.js b/lib/views/mixins/renderHistoricalDataGraph.js index 5350bf8..37eb3af 100644 --- a/lib/views/mixins/renderHistoricalDataGraph.js +++ b/lib/views/mixins/renderHistoricalDataGraph.js @@ -34,7 +34,7 @@ module.exports = function (attributes, element, graphOptions, hoverOptions) { var self = this; return _(attributes).filter(function (attr) { - return _.any(self.module.get('historicalData'), function (measurement) { + return _.some(self.module.get('historicalData'), function (measurement) { return measurement[attr.attr] !== undefined; }); }).map(function (attr) { diff --git a/lib/views/revenue.js b/lib/views/revenue.js index b662d46..8ed5996 100644 --- a/lib/views/revenue.js +++ b/lib/views/revenue.js @@ -23,7 +23,7 @@ module.exports = View.extend({ .value(); }) .flatten() - .unique() + .uniq() .map(function (minerId, it) { return { attr: 'revenue.' + minerId,