mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(Respond to Webhook Node): Fix issue stopping form trigger response (#9157)
This commit is contained in:
@@ -290,10 +290,12 @@ export class RespondToWebhook implements INodeType {
|
||||
const items = this.getInputData();
|
||||
const nodeVersion = this.getNode().typeVersion;
|
||||
|
||||
const WEBHOOK_NODE_TYPES = ['n8n-nodes-base.webhook', 'n8n-nodes-base.formTrigger'];
|
||||
|
||||
try {
|
||||
if (nodeVersion >= 1.1) {
|
||||
const connectedNodes = this.getParentNodes(this.getNode().name);
|
||||
if (!connectedNodes.some((node) => node.type === 'n8n-nodes-base.webhook')) {
|
||||
if (!connectedNodes.some(({ type }) => WEBHOOK_NODE_TYPES.includes(type))) {
|
||||
throw new NodeOperationError(
|
||||
this.getNode(),
|
||||
new Error('No Webhook node found in the workflow'),
|
||||
|
||||
Reference in New Issue
Block a user