fix(core): Fix optional chaining in continue on fail check (#9667)

This commit is contained in:
Iván Ovejero 2024-06-07 14:56:10 +02:00 committed by GitHub
parent 1fdd657a0c
commit 6ae6a5ebdf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);