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:
parent
ba209c2bdd
commit
b96164d4f5
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user