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

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

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