mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 18:41:14 +00:00
fix(editor): Stop connection to last selected node when pasting on new canvas (no-changelog) (#11042)
This commit is contained in:
@@ -585,7 +585,7 @@ async function onClipboardPaste(plainTextData: string): Promise<void> {
|
||||
|
||||
workflowData = await fetchWorkflowDataFromUrl(plainTextData);
|
||||
} else {
|
||||
// Pasted data is is possible workflow data
|
||||
// Pasted data is possible workflow data
|
||||
workflowData = jsonParse<IWorkflowDataUpdate | null>(plainTextData, { fallbackValue: null });
|
||||
}
|
||||
|
||||
@@ -773,6 +773,8 @@ function onCreateConnectionCancelled(
|
||||
uiStore.lastCancelledConnectionPosition = [position.x, position.y];
|
||||
|
||||
setTimeout(() => {
|
||||
if (!event.nodeId) return;
|
||||
|
||||
nodeCreatorStore.openNodeCreatorForConnectingNode({
|
||||
connection: {
|
||||
source: event.nodeId,
|
||||
|
||||
Reference in New Issue
Block a user