From bef641609e2f375d9ccbd297ee1129bc072fc47e Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Mon, 3 Jan 2022 23:29:12 +0000 Subject: [PATCH] Select links when nodes on either side selected --- .../@node-red/editor-client/src/js/ui/view.js | 20 +++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) 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 776bb0962..5b0c288ff 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 @@ -128,6 +128,14 @@ RED.view = (function() { if (!setIds.has(node.id)) { set.push({n:node}); setIds.add(node.id); + var links = RED.nodes.getNodeLinks(node.id,PORT_TYPE_INPUT).concat(RED.nodes.getNodeLinks(node.id,PORT_TYPE_OUTPUT)) + for (var i=0,l=links.length;i