mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Handle a node having wires in the editor on ports it no longer has
Fixes #1724
This commit is contained in:
parent
db87b0dfa5
commit
0a82459233
@ -491,7 +491,9 @@ RED.nodes = (function() {
|
|||||||
for (var j=0;j<wires.length;j++) {
|
for (var j=0;j<wires.length;j++) {
|
||||||
var w = wires[j];
|
var w = wires[j];
|
||||||
if (w.target.type != "subflow") {
|
if (w.target.type != "subflow") {
|
||||||
node.wires[w.sourcePort].push(w.target.id);
|
if (w.sourcePort < node.wires.length) {
|
||||||
|
node.wires[w.sourcePort].push(w.target.id);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user