Преглед изворни кода

HUE-7234 [editor] New variable should be empty

jdesjean пре 8 година
родитељ
комит
ba90027
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      desktop/libs/notebook/src/notebook/static/notebook/js/notebook.ko.js

+ 1 - 1
desktop/libs/notebook/src/notebook/static/notebook/js/notebook.ko.js

@@ -652,7 +652,7 @@ var EditorViewModel = (function() {
         var variable = self.variables()[index];
         variable.name(item.name);
         variable.defaultValue(item.defaultValue);
-        variable.value(self.variableValues[item.name] || variable.value() || "");
+        variable.value(self.variableValues[item.name] || (!needsMore && variable.value()) || "");
       });
     });
     self.statement = ko.computed(function () {