mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
@@ -2416,7 +2416,9 @@ RED.view = (function() {
|
||||
// connecting to a link node virual port.
|
||||
if (!(
|
||||
(d.type === "link out" && portType === PORT_TYPE_OUTPUT) ||
|
||||
(d.type === "link in" && portType === PORT_TYPE_INPUT)
|
||||
(d.type === "link in" && portType === PORT_TYPE_INPUT) ||
|
||||
(portType === PORT_TYPE_OUTPUT && mouseup_node.outputs === 0) ||
|
||||
(portType === PORT_TYPE_INPUT && mouseup_node.inputs === 0)
|
||||
)) {
|
||||
var existingLink = RED.nodes.filterLinks({source:src,target:dst,sourcePort: src_port}).length !== 0;
|
||||
if (!existingLink) {
|
||||
|
Reference in New Issue
Block a user