From c2e1d8fe6383cb6bb25e8deaab1e5e16187307e3 Mon Sep 17 00:00:00 2001 From: christian-byrne Date: Sun, 30 Jun 2024 18:47:48 -0700 Subject: [PATCH] Skip state check hook on first load --- web/scripts/changeTracker.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/web/scripts/changeTracker.js b/web/scripts/changeTracker.js index 041c83122e0..39bc4a8104b 100644 --- a/web/scripts/changeTracker.js +++ b/web/scripts/changeTracker.js @@ -173,9 +173,11 @@ export class ChangeTracker { const onNodeAdded = LiteGraph.LGraph.prototype.onNodeAdded; LiteGraph.LGraph.prototype.onNodeAdded = function () { const v = onNodeAdded?.apply(this, arguments); - const ct = changeTracker(); - if (!ct.isOurLoad) { - ct.checkState(); + if (!app?.configuringGraph) { + const ct = changeTracker(); + if (!ct.isOurLoad) { + ct.checkState(); + } } return v; };