소스 검색

AMBARI-12868. Improve calls to the localStorage (onechiporenko)

Oleg Nechiporenko 10 년 전
부모
커밋
6fc3144147
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      ambari-web/app/controllers/main/admin/stack_and_upgrade_controller.js

+ 3 - 1
ambari-web/app/controllers/main/admin/stack_and_upgrade_controller.js

@@ -163,7 +163,9 @@ App.MainAdminStackAndUpgradeController = Em.Controller.extend(App.LocalStorage,
   initDBProperties: function () {
   initDBProperties: function () {
     var props = this.getDBProperties(this.get('wizardStorageProperties'));
     var props = this.getDBProperties(this.get('wizardStorageProperties'));
     Em.keys(props).forEach(function (k) {
     Em.keys(props).forEach(function (k) {
-      this.set(k, props[k]);
+      if (props[k]) {
+        this.set(k, props[k]);
+      }
     }, this);
     }, this);
   },
   },