mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
parent
04bdcbd490
commit
a941b1437c
@ -409,7 +409,11 @@ function remapSubflowNodes(nodes,nodeMap) {
|
|||||||
for (j=0;j<outputs.length;j++) {
|
for (j=0;j<outputs.length;j++) {
|
||||||
wires = outputs[j];
|
wires = outputs[j];
|
||||||
for (k=0;k<wires.length;k++) {
|
for (k=0;k<wires.length;k++) {
|
||||||
|
if (nodeMap[outputs[j][k]]) {
|
||||||
outputs[j][k] = nodeMap[outputs[j][k]].id
|
outputs[j][k] = nodeMap[outputs[j][k]].id
|
||||||
|
} else {
|
||||||
|
outputs[j][k] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -421,7 +425,6 @@ function remapSubflowNodes(nodes,nodeMap) {
|
|||||||
for (var prop in node) {
|
for (var prop in node) {
|
||||||
if (node.hasOwnProperty(prop) && prop !== '_alias') {
|
if (node.hasOwnProperty(prop) && prop !== '_alias') {
|
||||||
if (nodeMap[node[prop]]) {
|
if (nodeMap[node[prop]]) {
|
||||||
//console.log("Mapped",node.type,node.id,prop,nodeMap[node[prop]].id);
|
|
||||||
node[prop] = nodeMap[node[prop]].id;
|
node[prop] = nodeMap[node[prop]].id;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user