Fixed missed lodash indexBy() after upgrade to 4.x.

This commit is contained in:
Alexander Zobnin
2016-09-15 22:14:26 +03:00
parent 2882a48f25
commit 74503655bd
3 changed files with 3 additions and 3 deletions

View File

@@ -230,7 +230,7 @@ angular.module('grafana.services').factory('QueryProcessor', function($q) {
// Group history by itemid
var grouped_history = _.groupBy(history, 'itemid');
var hosts = _.indexBy(_.flatten(_.map(items, 'hosts')), 'hostid');
var hosts = _.groupBy(_.flatten(_.map(items, 'hosts')), 'hostid');
return _.map(grouped_history, function(hist, itemid) {
var item = _.find(items, {'itemid': itemid});