mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
parent
fe2360883f
commit
dd89ea3731
@ -1903,6 +1903,13 @@ RED.view = (function() {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// This is not a virtualLink - which means it started
|
||||
// on a regular node port. Need to ensure the this isn't
|
||||
// connecting to a link node virual port.
|
||||
if (!(
|
||||
(d.type === "link out" && portType === PORT_TYPE_OUTPUT) ||
|
||||
(d.type === "link in" && portType === PORT_TYPE_INPUT)
|
||||
)) {
|
||||
var existingLink = RED.nodes.filterLinks({source:src,target:dst,sourcePort: src_port}).length !== 0;
|
||||
if (!existingLink) {
|
||||
RED.nodes.addLink(link);
|
||||
@ -1911,6 +1918,7 @@ RED.view = (function() {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (addedLinks.length > 0 || removedLinks.length > 0 || modifiedNodes.length > 0) {
|
||||
// console.log(addedLinks);
|
||||
// console.log(removedLinks);
|
||||
|
Loading…
Reference in New Issue
Block a user