From 2c3689a9efb54a12839c142c96b603aaaebdbffd Mon Sep 17 00:00:00 2001 From: Mutasem Aldmour Date: Wed, 30 Oct 2024 15:30:54 +0100 Subject: [PATCH] fix projects --- packages/editor-ui/src/views/WorkflowsView.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/editor-ui/src/views/WorkflowsView.vue b/packages/editor-ui/src/views/WorkflowsView.vue index 1a38e5b920..c7861596a1 100644 --- a/packages/editor-ui/src/views/WorkflowsView.vue +++ b/packages/editor-ui/src/views/WorkflowsView.vue @@ -203,9 +203,12 @@ const trackCategoryLinkClick = (category: string) => { const fetchWorkflowsWithFilters = async () => { const { homeProject, status, credentials, nodeTypes, nodeName, webhookUrl, httpNodeUrl, tags } = filters.value; + + const projectId = + typeof route.params?.projectId === 'string' ? route.params.projectId : homeProject; const options: WorkflowsFetchOptions = { filter: { - projectId: homeProject ? homeProject : undefined, + projectId, active: status === StatusFilter.ACTIVE ? true : undefined, tags: tags.map((tagId) => tagsStore.tagsById[tagId]?.name), },