Fixed lodash migration issues after upgrade to 4.x.

Moved: _.contains -> _.includes
		   _.object -> _.zipObject
		   _.first - replaced by native slice()
This commit is contained in:
Alexander Zobnin
2016-09-17 21:25:26 +03:00
parent 74503655bd
commit 70503a0647
3 changed files with 7 additions and 7 deletions

View File

@@ -222,7 +222,7 @@ class TriggerPanelCtrl extends MetricsPanelCtrl {
}
// Limit triggers number
self.triggerList = _.first(triggerList, self.panel.limit);
self.triggerList = triggerList.slice(0, self.panel.limit);
// Notify panel that request is finished
self.setTimeQueryEnd();