From 257d4fc7b9f7a7d3a3eb4dc71033fa03ece2770a Mon Sep 17 00:00:00 2001 From: filtered <176114999+webfiltered@users.noreply.github.com> Date: Mon, 17 Mar 2025 23:54:44 +1100 Subject: [PATCH] Fix old graph ID kept when configuring new graph (#798) Prevents ID leakage when using default `LGraph.configure()` settings. --- src/LGraph.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/LGraph.ts b/src/LGraph.ts index 5c457959c..7d41d87d9 100644 --- a/src/LGraph.ts +++ b/src/LGraph.ts @@ -237,6 +237,9 @@ export class LGraph implements LinkNetwork, Serialisable { this.stop() this.status = LGraph.STATUS_STOPPED + this.id = zeroUuid + this.revision = 0 + this.state = { lastGroupId: 0, lastNodeId: 0,