Skip to content

Commit

Permalink
fix(editor): Fix bug causing workflow debugging to not work in new ca…
Browse files Browse the repository at this point in the history
…nvas (no-changelog) (#10384)
  • Loading branch information
alexgrozav authored Aug 13, 2024
1 parent 1e310f4 commit dfd712a
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion packages/editor-ui/src/views/NodeView.v2.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
onMounted,
ref,
useCssModule,
watch,
} from 'vue';
import { useRoute, useRouter } from 'vue-router';
import WorkflowCanvas from '@/components/canvas/WorkflowCanvas.vue';
Expand Down Expand Up @@ -288,6 +289,7 @@ async function initializeRoute() {
nodeHelpers.updateNodesParameterIssues();
await loadCredentials();
await initializeDebugMode();
}
async function initializeWorkspaceForNewWorkflow() {
Expand All @@ -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();
Expand Down Expand Up @@ -748,6 +749,7 @@ async function importWorkflowExact({ workflow: workflowData }: { workflow: IWork
resetWorkspace();
await initializeData();
await initializeWorkspace({
...workflowData,
nodes: NodeViewUtils.getFixedNodesList<INodeUi>(workflowData.nodes),
Expand Down Expand Up @@ -1370,6 +1372,21 @@ function registerCustomActions() {
// });
}
/**
* Routing
*/
watch(
() => route.name,
async () => {
if (!checkIfEditingIsAllowed()) {
return;
}
await initializeRoute();
},
);
/**
* Lifecycle
*/
Expand Down

0 comments on commit dfd712a

Please sign in to comment.