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

@@ -117,7 +117,7 @@ angular.module('grafana.services').factory('ZabbixCachingProxy', function($q, $i
var deferred = this.$q.defer();
var historyStorage = this.storage.history;
var full_history;
var expired = _.filter(_.indexBy(items, 'itemid'), function(item, itemid) {
var expired = _.filter(_.groupBy(items, 'itemid'), function(item, itemid) {
return !historyStorage[itemid];
});
if (expired.length) {