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

do JSON comparison of old value/new value

fixes #3475
This commit is contained in:
Steve-Mcl 2022-03-08 14:07:03 +00:00
parent fdb868516f
commit a49927f173

View File

@ -107,7 +107,7 @@
newValue = ""; newValue = "";
} }
} }
if (node[d] != newValue) { if (!JSON.stringify(node[d]) === JSON.stringify(newValue)) {
if (node._def.defaults[d].type) { if (node._def.defaults[d].type) {
// Change to a related config node // Change to a related config node
var configNode = RED.nodes.node(node[d]); var configNode = RED.nodes.node(node[d]);