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

fix nodes losing their wires when in an iframe

This commit is contained in:
Bruno Henriques 2022-03-09 10:39:47 +00:00
parent ac97e8c613
commit a8579fa68a
No known key found for this signature in database
GPG Key ID: 1278EFF3748EAE54

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) {