Эх сурвалжийг харах

HUE-7234 [editor] New variable should be empty

jdesjean 8 жил өмнө
parent
commit
ba900274f2

+ 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 () {