Fixed "e is undefined" error.

This commit is contained in:
Alexander Zobnin
2015-12-28 22:28:36 +03:00
parent c06a9082c2
commit 6118147623

View File

@@ -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; }