mirror of
https://github.com/node-red/node-red.git
synced 2025-12-27 23:34:38 +01:00
Fix deleting suggested node with wire
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user