diff --git a/src/transformers/visitors/orchestrationInternalFunctionCallVisitor.ts b/src/transformers/visitors/orchestrationInternalFunctionCallVisitor.ts index ac00dfc77..6dd38b5c3 100644 --- a/src/transformers/visitors/orchestrationInternalFunctionCallVisitor.ts +++ b/src/transformers/visitors/orchestrationInternalFunctionCallVisitor.ts @@ -299,6 +299,7 @@ const internalCallVisitor = { }); } }); + childNode.body.statements = childNode.body.statements.filter(item => item !== null); } else{ state.newStatementList.forEach((statenode, stateid) => { childNode.body.statements.forEach((node, id)=> {