feat(n8n Form Page Node): New node (#10390)

Co-authored-by: Giulio Andreini <g.andreini@gmail.com>
Co-authored-by: Shireen Missi <94372015+ShireenMissi@users.noreply.github.com>
This commit is contained in:
Michael Kret
2024-10-17 16:59:53 +03:00
committed by GitHub
parent 86a94b5523
commit 643d66c0ae
39 changed files with 2101 additions and 229 deletions

View File

@@ -76,6 +76,7 @@ import type { Connection } from '@vue-flow/core';
import type {
IConnection,
IConnections,
IDataObject,
INode,
INodeConnections,
INodeCredentials,
@@ -1673,6 +1674,12 @@ export function useCanvasOperations({ router }: { router: ReturnType<typeof useR
);
if (isDuplicate) {
node.webhookId = uuid();
if (node.parameters.path) {
node.parameters.path = node.webhookId as string;
} else if ((node.parameters.options as IDataObject).path) {
(node.parameters.options as IDataObject).path = node.webhookId as string;
}
}
}