From 7090a79b5da611d829da4d027a0194fcb60b4755 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Sat, 14 May 2022 09:14:19 +0200 Subject: [PATCH] fix(core): Fix call to `/executions-current` with unsaved workflow (#3280) --- packages/cli/src/Server.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/cli/src/Server.ts b/packages/cli/src/Server.ts index e52ac7f80..fbf493a70 100644 --- a/packages/cli/src/Server.ts +++ b/packages/cli/src/Server.ts @@ -2658,7 +2658,8 @@ class App { for (const data of executingWorkflows) { if ( (filter.workflowId !== undefined && filter.workflowId !== data.workflowId) || - !sharedWorkflowIds.includes(data.workflowId.toString()) + (data.workflowId !== undefined && + !sharedWorkflowIds.includes(data.workflowId.toString())) ) { continue; }