Skip to content

Commit

Permalink
fix(Execute Workflow Node): Continue on fail behaviour not correctly …
Browse files Browse the repository at this point in the history
…implemented (#9890)
  • Loading branch information
ShireenMissi authored Jul 1, 2024
1 parent 41c47a2 commit 16b1a09
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,11 @@ export class ExecuteWorkflow implements INodeType {
}
} catch (error) {
if (this.continueOnFail(error)) {
return [[{ json: { error: error.message }, pairedItem: { item: i } }]];
if (returnData[i] === undefined) {
returnData[i] = [];
}
returnData[i].push({ json: { error: error.message }, pairedItem: { item: i } });
continue;
}
throw new NodeOperationError(this.getNode(), error, {
message: `Error executing workflow with item at index ${i}`,
Expand Down

0 comments on commit 16b1a09

Please sign in to comment.