Skip to content

Commit

Permalink
fix(core): Fix optional chaining in continue on fail check (#9667)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivov authored and RicardoE105 committed Jun 9, 2024
1 parent 2021684 commit 2475016
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/WorkflowExecute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1067,7 +1067,7 @@ export class WorkflowExecute {

nodeSuccessData = runNodeData.data;

const didContinueOnFail = nodeSuccessData?.at(0)?.at(0)?.json.error !== undefined;
const didContinueOnFail = nodeSuccessData?.at(0)?.at(0)?.json?.error !== undefined;

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

0 comments on commit 2475016

Please sign in to comment.