Преглед на файлове

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

Jaimin Jetly преди 11 години
родител
ревизия
dbb625eb34
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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'));