mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix: Prevent empty path in webhooks (#16864)
Co-authored-by: Roman Davydchuk <roman.davydchuk@n8n.io>
This commit is contained in:
@@ -922,7 +922,7 @@ export function useWorkflowHelpers() {
|
||||
|
||||
function getWebhookPath(trigger: INode) {
|
||||
if (trigger.type === WEBHOOK_NODE_TYPE) {
|
||||
return trigger.parameters.path as string;
|
||||
return (trigger.parameters.path as string) || (trigger.webhookId as string);
|
||||
}
|
||||
if (trigger.type === FORM_TRIGGER_NODE_TYPE) {
|
||||
return ((trigger.parameters.options as { path: string }) || {}).path ?? trigger.webhookId;
|
||||
|
||||
Reference in New Issue
Block a user