diff --git a/packages/editor-ui/src/api/workflows.ts b/packages/editor-ui/src/api/workflows.ts index 1b73d5ad3b..8bbed44ccc 100644 --- a/packages/editor-ui/src/api/workflows.ts +++ b/packages/editor-ui/src/api/workflows.ts @@ -38,7 +38,8 @@ export async function getWorkflows(context: IRestApiContext, options: WorkflowsF return await makeRestApiRequest(context, 'GET', '/workflows', { includeScopes: true, ...options, - credentialIds: options.credentialIds ? options.credentialIds.join(',') : undefined, + credentialIds: options.credentialIds?.length ? options.credentialIds.join(',') : undefined, + nodeTypes: options.nodeTypes?.length ? options.nodeTypes.join(',') : undefined, }); }