Ver código fonte

AMBARI-4560. BG operation pop-up: JS error encountered on clicking on host in progress state. (jaimin)

Jaimin Jetly 11 anos atrás
pai
commit
dbb625eb34
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      ambari-web/app/utils/host_progress_popup.js

+ 1 - 1
ambari-web/app/utils/host_progress_popup.js

@@ -842,7 +842,7 @@ App.HostPopup = Em.Object.create({
          * Return task detail info of opened task
          */
         openedTask: function () {
-          if (!this.get('openedTaskId')) {
+          if (!(this.get('openedTaskId') && this.get('tasks'))) {
             return Ember.Object.create();
           }
           return this.get('tasks').findProperty('id', this.get('openedTaskId'));