diff --git a/public/red/ui/editor.js b/public/red/ui/editor.js index 63d3899c6..3315d934a 100644 --- a/public/red/ui/editor.js +++ b/public/red/ui/editor.js @@ -55,7 +55,11 @@ RED.editor = function() { if (input.attr('type') === "checkbox") { input.prop('checked',node[d]); } else { - input.val(node[d]||""); + var val = node[d]; + if (node[d] == null) { + val = ""; + } + input.val(val); } } $("#node-input-"+d).change(function() {