Fix deleting suggested node with wire

pull/5190/head
Nick O'Leary 2025-06-25 14:18:44 +01:00
parent e65728e94b
commit b2d6eeadbd
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
1 changed files with 3 additions and 3 deletions

View File

@ -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 {