mirror of https://github.com/node-red/node-red.git
Fix deleting suggested node with wire
parent
e65728e94b
commit
b2d6eeadbd
|
|
@ -1472,8 +1472,9 @@ RED.view = (function() {
|
||||||
if (quickAddLink) {
|
if (quickAddLink) {
|
||||||
// Need to attach the link to the suggestion. This is assumed to be the first
|
// 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.
|
// 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;
|
const drag_line = quickAddLink;
|
||||||
let src = null, dst, src_port;
|
let src = null, dst, src_port;
|
||||||
if (drag_line.portType === PORT_TYPE_OUTPUT && (targetNode.inputs > 0 || drag_line.virtualLink) ) {
|
if (drag_line.portType === PORT_TYPE_OUTPUT && (targetNode.inputs > 0 || drag_line.virtualLink) ) {
|
||||||
|
|
@ -6640,7 +6641,6 @@ RED.view = (function() {
|
||||||
}
|
}
|
||||||
if (!RED.typeSearch.isVisible()) {
|
if (!RED.typeSearch.isVisible()) {
|
||||||
$(window).on('keydown.suggestedFlow', function (evt) {
|
$(window).on('keydown.suggestedFlow', function (evt) {
|
||||||
console.log('kd')
|
|
||||||
if (evt.keyCode === 9) { // tab
|
if (evt.keyCode === 9) { // tab
|
||||||
applySuggestedFlow();
|
applySuggestedFlow();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue