Explorar el Código

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

atkach hace 11 años
padre
commit
a9da449845
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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 == "") {