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

@@ -378,7 +378,7 @@ export class ZabbixAPIDatasource {
return self.zabbixAPI
.getEvents(objectids, timeFrom, timeTo, showOkEvents)
.then(events => {
var indexedTriggers = _.indexBy(triggers, 'triggerid');
var indexedTriggers = _.groupBy(triggers, 'triggerid');
// Hide acknowledged events if option enabled
if (annotation.hideAcknowledged) {