Skip to content

Commit

Permalink
fix(core): Handle missing json property on nodeSuccessData (#13219)
Browse files Browse the repository at this point in the history
  • Loading branch information
netroy authored Feb 12, 2025
1 parent 67cd05c commit aedea7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/execution-engine/workflow-execute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1488,7 +1488,7 @@ export class WorkflowExecute {

nodeSuccessData = runNodeData.data;

const didContinueOnFail = nodeSuccessData?.[0]?.[0]?.json.error !== undefined;
const didContinueOnFail = nodeSuccessData?.[0]?.[0]?.json?.error !== undefined;

while (didContinueOnFail && tryIndex !== maxTries - 1) {
await sleep(waitBetweenTries);
Expand Down

0 comments on commit aedea7a

Please sign in to comment.