浏览代码

AMBARI-4821 Navigation from Hosts page to HostDetailsPage breaks occasionally. (atkach)

atkach 11 年之前
父节点
当前提交
a9da449845
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      ambari-web/app/views/main/host.js

+ 2 - 0
ambari-web/app/views/main/host.js

@@ -352,6 +352,8 @@ App.MainHostView = App.TableView.extend({
      * Update <code>hostsCount</code> in current category
      */
     updateOnce: function() {
+      //skip update when view is destroyed
+      if(!this.get('view.content')) return;
       var statusString = this.get('healthStatusValue');
       if (this.get('isHealthStatus')) {
         if (statusString == "") {