mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
add error
This commit is contained in:
parent
afc61322d1
commit
eb0e80b69f
|
@ -649,6 +649,7 @@ export function useCanvasOperations({ router }: { router: ReturnType<typeof useR
|
||||||
}
|
}
|
||||||
|
|
||||||
function createConnectionToLastInteractedWithNode(node: INodeUi, options: AddNodeOptions = {}) {
|
function createConnectionToLastInteractedWithNode(node: INodeUi, options: AddNodeOptions = {}) {
|
||||||
|
console.log('createConnectionToLastInteractedWithNode called');
|
||||||
const lastInteractedWithNode = uiStore.lastInteractedWithNode;
|
const lastInteractedWithNode = uiStore.lastInteractedWithNode;
|
||||||
if (!lastInteractedWithNode) {
|
if (!lastInteractedWithNode) {
|
||||||
return;
|
return;
|
||||||
|
@ -731,6 +732,7 @@ export function useCanvasOperations({ router }: { router: ReturnType<typeof useR
|
||||||
targetIsNew: targetNode.id === node.id,
|
targetIsNew: targetNode.id === node.id,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
throw new Error('Is this thing on?');
|
||||||
}
|
}
|
||||||
|
|
||||||
function trackAddNode(nodeData: INodeUi, options: AddNodeOptions) {
|
function trackAddNode(nodeData: INodeUi, options: AddNodeOptions) {
|
||||||
|
|
Loading…
Reference in a new issue