mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-12 23:54:07 -08:00
🐛 Fix bug that webhookId did not get refreshed on node-duplicate
This commit is contained in:
parent
a25229ace9
commit
82e16790c6
|
@ -1421,6 +1421,11 @@ export default mixins(
|
||||||
[0, 150],
|
[0, 150],
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (newNodeData.webhookId) {
|
||||||
|
// Make sure that the node gets a new unique webhook-ID
|
||||||
|
newNodeData.webhookId = uuidv4();
|
||||||
|
}
|
||||||
|
|
||||||
await this.addNodes([newNodeData]);
|
await this.addNodes([newNodeData]);
|
||||||
|
|
||||||
// Automatically deselect all nodes and select the current one and also active
|
// Automatically deselect all nodes and select the current one and also active
|
||||||
|
|
Loading…
Reference in a new issue