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

Fix false change detection when no config node selected

This commit is contained in:
Nick O'Leary 2020-01-10 14:52:20 +00:00
parent ba209c2bdd
commit b96164d4f5
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -1320,11 +1320,13 @@ RED.editor = (function() {
newValue = parseInt(newValue); newValue = parseInt(newValue);
} }
} }
if (editing_node[d] != newValue) {
if (editing_node._def.defaults[d].type) { if (editing_node._def.defaults[d].type) {
if (newValue == "_ADD_") { if (newValue == "_ADD_") {
newValue = ""; newValue = "";
} }
}
if (editing_node[d] != newValue) {
if (editing_node._def.defaults[d].type) {
// Change to a related config node // Change to a related config node
var configNode = RED.nodes.node(editing_node[d]); var configNode = RED.nodes.node(editing_node[d]);
if (configNode) { if (configNode) {