From 87a815fd6f2f5921f50e3e70d4970ee717c88ed1 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Mon, 17 Jun 2019 15:37:45 +0100 Subject: [PATCH] Don't allow a link node virtual wire to connect to normal port --- packages/node_modules/@node-red/editor-client/src/js/ui/view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/view.js b/packages/node_modules/@node-red/editor-client/src/js/ui/view.js index 75df20c95..636c12b40 100755 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/view.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/view.js @@ -1863,7 +1863,7 @@ RED.view = (function() { } var link = {source: src, sourcePort:src_port, target: dst}; if (drag_line.virtualLink) { - if (/^link (in|out)$/.test(src.type) && /^link (in|out)$/.test(dst.type)) { + if (/^link (in|out)$/.test(src.type) && /^link (in|out)$/.test(dst.type) && src.type !== dst.type) { if (src.links.indexOf(dst.id) === -1 && dst.links.indexOf(src.id) === -1) { var oldSrcLinks = $.extend(true,{},{v:src.links}).v var oldDstLinks = $.extend(true,{},{v:dst.links}).v