From d23e1016a8ec9e2b78a0454fff514a8065a670e3 Mon Sep 17 00:00:00 2001 From: Nikhil Kuriakose Date: Mon, 23 Jun 2025 13:22:51 +0200 Subject: [PATCH] fix(editor): Set workflow project to be shown in the breadcrumb (#16586) --- .../frontend/editor-ui/src/views/WorkflowExecutionsView.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/frontend/editor-ui/src/views/WorkflowExecutionsView.vue b/packages/frontend/editor-ui/src/views/WorkflowExecutionsView.vue index 6e71d439cd..b25c63a58d 100644 --- a/packages/frontend/editor-ui/src/views/WorkflowExecutionsView.vue +++ b/packages/frontend/editor-ui/src/views/WorkflowExecutionsView.vue @@ -6,6 +6,7 @@ import { useI18n } from '@n8n/i18n'; import type { ExecutionFilterType, IWorkflowDb } from '@/Interface'; import { useWorkflowsStore } from '@/stores/workflows.store'; import { useNodeTypesStore } from '@/stores/nodeTypes.store'; +import { useProjectsStore } from '@/stores/projects.store'; import { NO_NETWORK_ERROR_CODE } from '@n8n/rest-api-client'; import { useToast } from '@/composables/useToast'; import { NEW_WORKFLOW_ID, PLACEHOLDER_EMPTY_WORKFLOW_ID, VIEWS } from '@/constants'; @@ -19,6 +20,7 @@ import { executionRetryMessage } from '@/utils/executionUtils'; const executionsStore = useExecutionsStore(); const workflowsStore = useWorkflowsStore(); const nodeTypesStore = useNodeTypesStore(); +const projectsStore = useProjectsStore(); const i18n = useI18n(); const telemetry = useTelemetry(); const route = useRoute(); @@ -146,6 +148,9 @@ async function fetchWorkflow() { } workflow.value = workflowsStore.getWorkflowById(workflowId.value); + const workflowData = await workflowsStore.fetchWorkflow(workflow.value.id); + + await projectsStore.setProjectNavActiveIdByWorkflowHomeProject(workflowData.homeProject); } else { workflow.value = workflowsStore.workflow; }