Check for null config properties in editor before overwritting them

pull/929/head
Nick O'Leary 2016-06-29 21:32:39 +01:00
parent 3008e4e60f
commit 23087447f1
1 changed files with 1 additions and 1 deletions

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 = "";