Kaynağa Gözat

AMBARI-15658. If there is a host with no components then host page spins (rzang)

Richard Zang 9 yıl önce
ebeveyn
işleme
b0d6a57819
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      ambari-web/app/mappers/hosts_mapper.js

+ 1 - 1
ambari-web/app/mappers/hosts_mapper.js

@@ -159,7 +159,7 @@ App.hostsMapper = App.QuickDataMapper.create({
         var alertsSummary = item.alerts_summary;
         item.critical_warning_alerts_count = alertsSummary ? (alertsSummary.CRITICAL || 0) + (alertsSummary.WARNING || 0) : 0;
         item.cluster_id = clusterName;
-        var existingHost = hostsMap[component.host_name];
+        var existingHost = hostsMap[item.Hosts.host_name];
         // There is no need to override existing index in host detail view since old model(already have indexes) will not be cleared.
         item.index = (existingHost && !json.itemTotal)? existingHost.get('index'): index;