Handle a node having wires in the editor on ports it no longer has

Fixes #1724
This commit is contained in:
Nick O'Leary
2018-05-17 11:27:28 +01:00
parent db87b0dfa5
commit 0a82459233

View File

@@ -491,7 +491,9 @@ RED.nodes = (function() {
for (var j=0;j<wires.length;j++) {
var w = wires[j];
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);
}
}
}