This is an automated email from the ASF dual-hosted git repository.

ababiichuk pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 009cd2b  AMBARI-24037 Alerts label isn't clickable at the service page 
after turning on mm for service. (ababiichuk)
009cd2b is described below

commit 009cd2bf675f0ea567a84db2ab681d990f748ffa
Author: ababiichuk <[email protected]>
AuthorDate: Tue Jun 5 20:42:27 2018 +0300

    AMBARI-24037 Alerts label isn't clickable at the service page after turning 
on mm for service. (ababiichuk)
---
 ambari-web/app/models/alerts/alert_definition.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ambari-web/app/models/alerts/alert_definition.js 
b/ambari-web/app/models/alerts/alert_definition.js
index 236a40f..1c4eea0 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;

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to