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

Merge pull request #3484 from zettca/node-wires-array

fix nodes losing their wires when in an iframe
This commit is contained in:
Nick O'Leary 2022-03-09 11:42:10 +00:00 committed by GitHub
commit 6d50eb5737
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2135,7 +2135,7 @@ RED.nodes = (function() {
n = new_nodes[i];
if (n.wires) {
for (var w1=0;w1<n.wires.length;w1++) {
var wires = (n.wires[w1] instanceof Array)?n.wires[w1]:[n.wires[w1]];
var wires = (Array.isArray(n.wires[w1]))?n.wires[w1]:[n.wires[w1]];
for (var w2=0;w2<wires.length;w2++) {
if (node_map.hasOwnProperty(wires[w2])) {
if (n.z === node_map[wires[w2]].z) {