fix(editor): Update webhook paths when duplicating workflow (#9516)

This commit is contained in:
Milorad FIlipović
2024-05-29 12:51:33 +02:00
committed by GitHub
parent 4629354705
commit 3be7bb898b
5 changed files with 133 additions and 6 deletions

View File

@@ -1004,7 +1004,9 @@ export function useWorkflowHelpers(options: { router: ReturnType<typeof useRoute
if (resetWebhookUrls) {
workflowDataRequest.nodes = workflowDataRequest.nodes!.map((node) => {
if (node.webhookId) {
node.webhookId = uuid();
const newId = uuid();
node.webhookId = newId;
node.parameters.path = newId;
changedNodes[node.name] = node.webhookId;
}
return node;