diff --git a/packages/workflow/src/Workflow.ts b/packages/workflow/src/Workflow.ts index d4f228c8e8..53eade2492 100644 --- a/packages/workflow/src/Workflow.ts +++ b/packages/workflow/src/Workflow.ts @@ -1048,7 +1048,10 @@ export class Workflow { activation: WorkflowActivateMode, isTest?: boolean, ): Promise { - const node = this.getNode(webhookData.node) as INode; + const node = this.getNode(webhookData.node); + + if (!node) return; + const nodeType = this.nodeTypes.getByNameAndVersion(node.type, node.typeVersion); const webhookFn = nodeType.webhookMethods?.[webhookData.webhookDescription.name]?.[method];