1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Check for null config properties in editor before overwritting them

This commit is contained in:
Nick O'Leary 2016-06-29 21:32:39 +01:00
parent 3008e4e60f
commit 23087447f1

View File

@ -944,7 +944,7 @@ RED.editor = (function() {
} else {
newValue = input.val();
}
if (newValue !== editing_config_node[d]) {
if (newValue != null && newValue !== editing_config_node[d]) {
if (editing_config_node._def.defaults[d].type) {
if (newValue == "_ADD_") {
newValue = "";