fix projects

This commit is contained in:
Mutasem Aldmour 2024-10-30 15:30:54 +01:00
parent 87bee7123e
commit 2c3689a9ef
No known key found for this signature in database
GPG key ID: 3DFA8122BB7FD6B8

View file

@ -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),
},