mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
fix(editor): Fix bug causing workflow debugging to not work in new canvas (no-changelog) (#10384)
This commit is contained in:
@@ -8,6 +8,7 @@ import {
|
||||
onMounted,
|
||||
ref,
|
||||
useCssModule,
|
||||
watch,
|
||||
} from 'vue';
|
||||
import { useRoute, useRouter } from 'vue-router';
|
||||
import WorkflowCanvas from '@/components/canvas/WorkflowCanvas.vue';
|
||||
@@ -288,6 +289,7 @@ async function initializeRoute() {
|
||||
nodeHelpers.updateNodesParameterIssues();
|
||||
|
||||
await loadCredentials();
|
||||
await initializeDebugMode();
|
||||
}
|
||||
|
||||
async function initializeWorkspaceForNewWorkflow() {
|
||||
@@ -306,7 +308,6 @@ async function initializeWorkspaceForExistingWorkflow(id: string) {
|
||||
const workflowData = await workflowsStore.fetchWorkflow(id);
|
||||
|
||||
await openWorkflow(workflowData);
|
||||
await initializeDebugMode();
|
||||
|
||||
if (workflowData.meta?.onboardingId) {
|
||||
trackOpenWorkflowFromOnboardingTemplate();
|
||||
@@ -748,6 +749,7 @@ async function importWorkflowExact({ workflow: workflowData }: { workflow: IWork
|
||||
|
||||
resetWorkspace();
|
||||
|
||||
await initializeData();
|
||||
await initializeWorkspace({
|
||||
...workflowData,
|
||||
nodes: NodeViewUtils.getFixedNodesList<INodeUi>(workflowData.nodes),
|
||||
@@ -1370,6 +1372,21 @@ function registerCustomActions() {
|
||||
// });
|
||||
}
|
||||
|
||||
/**
|
||||
* Routing
|
||||
*/
|
||||
|
||||
watch(
|
||||
() => route.name,
|
||||
async () => {
|
||||
if (!checkIfEditingIsAllowed()) {
|
||||
return;
|
||||
}
|
||||
|
||||
await initializeRoute();
|
||||
},
|
||||
);
|
||||
|
||||
/**
|
||||
* Lifecycle
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user