mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
chore: Move router usage out of useCanvasOperation and useWorkflowHelpers (no-changelog) (#16041)
This commit is contained in:
@@ -161,7 +161,8 @@ const externalHooks = useExternalHooks();
|
||||
const toast = useToast();
|
||||
const message = useMessage();
|
||||
const documentTitle = useDocumentTitle();
|
||||
const workflowHelpers = useWorkflowHelpers({ router });
|
||||
const workflowHelpers = useWorkflowHelpers();
|
||||
const workflowSaving = useWorkflowSaving({ router });
|
||||
const nodeHelpers = useNodeHelpers();
|
||||
|
||||
const nodeTypesStore = useNodeTypesStore();
|
||||
@@ -237,7 +238,7 @@ const {
|
||||
editableWorkflowObject,
|
||||
lastClickPosition,
|
||||
startChat,
|
||||
} = useCanvasOperations({ router });
|
||||
} = useCanvasOperations();
|
||||
const { extractWorkflow } = useWorkflowExtraction();
|
||||
const { applyExecutionData } = useExecutionDebugging();
|
||||
useClipboard({ onPaste: onClipboardPaste });
|
||||
@@ -818,7 +819,7 @@ async function onSaveWorkflow() {
|
||||
if (workflowIsSaved || workflowIsArchived) {
|
||||
return;
|
||||
}
|
||||
const saved = await workflowHelpers.saveCurrentWorkflow();
|
||||
const saved = await workflowSaving.saveCurrentWorkflow();
|
||||
if (saved) {
|
||||
canvasEventBus.emit('saved:workflow');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user