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

Avoid marking node as changed if label state is default

Fixes #2009
This commit is contained in:
Nick O'Leary 2018-12-19 09:29:39 +00:00
parent afe9367bac
commit b837f7608c
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -1209,7 +1209,7 @@ RED.editor = (function() {
node.l = false; node.l = false;
} else { } else {
// A link node - default state is false // A link node - default state is false
if (node.hasOwnProperty('l')) { if (node.hasOwnProperty('l') && node.l) {
changes.l = node.l changes.l = node.l
changed = true; changed = true;
} }
@ -1219,7 +1219,7 @@ RED.editor = (function() {
// Checked - show label // Checked - show label
if (!/^link (in|out)$/.test(node.type)) { if (!/^link (in|out)$/.test(node.type)) {
// Not a link node - default state is true // Not a link node - default state is true
if (node.hasOwnProperty('l')) { if (node.hasOwnProperty('l') && !node.l) {
changes.l = node.l changes.l = node.l
changed = true; changed = true;
} }