summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorababiichuk <ababiichuk@hortonworks.com>2018-06-05 20:42:27 +0300
committeraBabiichuk <ababiichuk@hortonworks.com>2018-06-06 12:42:36 +0300
commit009cd2bf675f0ea567a84db2ab681d990f748ffa (patch)
tree77687b468b9215f9837fee98efbcf48d169e7026
parentba46c8d4138ba9b35f4f12f10f74994dec0fae7d (diff)
AMBARI-24037 Alerts label isn't clickable at the service page after turning on mm for service. (ababiichuk)
-rw-r--r--ambari-web/app/models/alerts/alert_definition.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ambari-web/app/models/alerts/alert_definition.js b/ambari-web/app/models/alerts/alert_definition.js
index 236a40ff0e..1c4eea0fa2 100644
--- a/ambari-web/app/models/alerts/alert_definition.js
+++ b/ambari-web/app/models/alerts/alert_definition.js
@@ -155,7 +155,7 @@ App.AlertDefinition = DS.Model.extend({
order.forEach(function (state) {
var cnt = summary[state] ? summary[state].count + summary[state].maintenanceCount : 0;
if (cnt > 0) {
- text = summary[state].latestText;
+ text = Em.getWithDefault(summary[state], 'latestText', '');
}
});
return text;