fix(core): Fix call to /executions-current with unsaved workflow (#3280)

This commit is contained in:
Iván Ovejero 2022-05-14 09:14:19 +02:00 committed by GitHub
parent 3fcee14bf5
commit 7090a79b5d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}