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 netroy committed Jun 12, 2024
1 parent 31a3260 commit 0434690
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 0434690

Please sign in to comment.