Fix old graph ID kept when configuring new graph (#798)

Prevents ID leakage when using default `LGraph.configure()` settings.
This commit is contained in:
filtered
2025-03-17 23:54:44 +11:00
committed by GitHub
parent 39a9799db7
commit 257d4fc7b9

View File

@@ -237,6 +237,9 @@ export class LGraph implements LinkNetwork, Serialisable<SerialisableGraph> {
this.stop()
this.status = LGraph.STATUS_STOPPED
this.id = zeroUuid
this.revision = 0
this.state = {
lastGroupId: 0,
lastNodeId: 0,