fix(editor): Update webhook paths when duplicating workflow (#9516)
This commit is contained in:
committed by
GitHub
parent
4629354705
commit
3be7bb898b
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user