mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-26 05:04:05 -08:00
fix: Make sure retryOf does not take null value (no-changelog) (#5915)
This commit is contained in:
parent
3e382ef85e
commit
89c12fc1a7
|
@ -33,7 +33,8 @@ export class WorkflowHooks {
|
||||||
this.executionId = executionId;
|
this.executionId = executionId;
|
||||||
this.workflowData = workflowData;
|
this.workflowData = workflowData;
|
||||||
this.sessionId = optionalParameters.sessionId;
|
this.sessionId = optionalParameters.sessionId;
|
||||||
this.retryOf = optionalParameters.retryOf;
|
// retryOf might be `null` from TypeORM
|
||||||
|
this.retryOf = optionalParameters.retryOf ?? undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
||||||
|
|
Loading…
Reference in a new issue