diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/editor.js b/packages/node_modules/@node-red/editor-client/src/js/ui/editor.js index 867dca967..5f8379aa1 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/editor.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/editor.js @@ -1320,11 +1320,13 @@ RED.editor = (function() { newValue = parseInt(newValue); } } + if (editing_node._def.defaults[d].type) { + if (newValue == "_ADD_") { + newValue = ""; + } + } if (editing_node[d] != newValue) { if (editing_node._def.defaults[d].type) { - if (newValue == "_ADD_") { - newValue = ""; - } // Change to a related config node var configNode = RED.nodes.node(editing_node[d]); if (configNode) {