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

Merge pull request #2607 from node-red-hitachi/fix-stringify-error

prevent conversion of circular structure
This commit is contained in:
Nick O'Leary 2020-06-10 13:38:32 +01:00 committed by GitHub
commit 81a4f42673
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2461,7 +2461,7 @@ RED.editor = (function() {
changes[d] = oldValues[d]; changes[d] = oldValues[d];
changed = true; changed = true;
} }
} else { } else if (d !== "nodes") {
if (JSON.stringify(oldValues[d]) !== JSON.stringify(editing_node[d])) { if (JSON.stringify(oldValues[d]) !== JSON.stringify(editing_node[d])) {
changes[d] = oldValues[d]; changes[d] = oldValues[d];
changed = true; changed = true;