From b2d6eeadbde7a5d901bd42607f9f7e449f408dfc Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Wed, 25 Jun 2025 14:18:44 +0100 Subject: [PATCH] Fix deleting suggested node with wire --- .../node_modules/@node-red/editor-client/src/js/ui/view.js | 6 +++--- 1 file changed, 3 insertions(+), 3 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 b3d63cc0e..35d49e01b 100644 --- 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 @@ -1472,8 +1472,9 @@ RED.view = (function() { if (quickAddLink) { // Need to attach the link to the suggestion. This is assumed to be the first // node in the array - as that's the one we've focussed on. - const targetNode = importResult.nodeMap[type.nodes[0].id] - + // We need to map from the suggested node's id to the imported node's id, + // and then get the proxy object for the node + const targetNode = RED.nodes.node(importResult.nodeMap[type.nodes[0].id].id) const drag_line = quickAddLink; let src = null, dst, src_port; if (drag_line.portType === PORT_TYPE_OUTPUT && (targetNode.inputs > 0 || drag_line.virtualLink) ) { @@ -6640,7 +6641,6 @@ RED.view = (function() { } if (!RED.typeSearch.isVisible()) { $(window).on('keydown.suggestedFlow', function (evt) { - console.log('kd') if (evt.keyCode === 9) { // tab applySuggestedFlow(); } else {