Explorar o código

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

atkach %!s(int64=11) %!d(string=hai) anos
pai
achega
a9da449845
Modificáronse 1 ficheiros con 2 adicións e 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 == "") {