From 63357aad82af1fe741db7fc99ad06f22085547c5 Mon Sep 17 00:00:00 2001 From: Mutasem Aldmour Date: Wed, 30 Oct 2024 13:41:52 +0100 Subject: [PATCH] fix api call --- packages/editor-ui/src/api/workflows.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, }); }