Explorar o código

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

Jaimin Jetly %!s(int64=11) %!d(string=hai) anos
pai
achega
dbb625eb34
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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'));