Fixed "e is undefined" error.
This commit is contained in:
@@ -385,13 +385,13 @@ function (angular, _, dateMath) {
|
||||
.then(function (result) {
|
||||
var events = [];
|
||||
|
||||
_.each(result, function(e) {
|
||||
var title ='';
|
||||
if (options.annotation.showHostname) {
|
||||
title += e.hosts[0]['name'] + ': ';
|
||||
}
|
||||
title += Number(e.value) ? 'Problem' : 'OK';
|
||||
|
||||
_.each(result, function(e) {
|
||||
// Hide acknowledged events
|
||||
if (e.acknowledges.length > 0 && options.annotation.showAcknowledged) { return; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user