Ver Fonte

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

Oleg Nechiporenko há 10 anos atrás
pai
commit
6fc3144147

+ 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 () {
     var props = this.getDBProperties(this.get('wizardStorageProperties'));
     Em.keys(props).forEach(function (k) {
-      this.set(k, props[k]);
+      if (props[k]) {
+        this.set(k, props[k]);
+      }
     }, this);
   },