소스 검색

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 == "") {