diff --git a/src/lib/litegraph/src/LGraphNode.ts b/src/lib/litegraph/src/LGraphNode.ts index 3a5b183008..0373847e35 100644 --- a/src/lib/litegraph/src/LGraphNode.ts +++ b/src/lib/litegraph/src/LGraphNode.ts @@ -1022,11 +1022,9 @@ export class LGraphNode // @ts-expect-error Exceptional case: id is removed so that the graph can assign a new one on add. data.id = undefined - const clonedUuid = LiteGraph.use_uuids ? LiteGraph.uuidv4() : undefined - node.id = this.id node.configure(data) - if (clonedUuid !== undefined) node.id = clonedUuid + if (LiteGraph.use_uuids) node.id = LiteGraph.uuidv4() return node }