Fix junction: ensure `sourcePort` is not undefined

fixes #3587
This commit is contained in:
Steve-Mcl 2022-05-05 09:37:32 +01:00
parent 851a925956
commit 531dbc5f83
1 changed files with 1 additions and 1 deletions

View File

@ -2918,7 +2918,7 @@ RED.view = (function() {
} else if (drag_line.portType === PORT_TYPE_INPUT) {
src = mouseup_node;
dst = drag_line.node;
src_port = portIndex;
src_port = portIndex || 0;
}
var link = {source: src, sourcePort:src_port, target: dst};
if (drag_line.virtualLink) {