From 0434690e4d9f64cca69dcc919bfda50dc87abcc6 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 c518eb2c1be36..191c71f653d5f 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);