From 2475016acaabf7864b31dd9c6b95b308127276e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Fri, 7 Jun 2024 14:56:10 +0200 Subject: [PATCH] fix(core): Fix optional chaining in continue on fail check (#9667) --- packages/core/src/WorkflowExecute.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/WorkflowExecute.ts b/packages/core/src/WorkflowExecute.ts index 95445fb603a24..10a34fab4b9ce 100644 --- a/packages/core/src/WorkflowExecute.ts +++ b/packages/core/src/WorkflowExecute.ts @@ -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);