From 24b969d3dace581ed3fb547eedfbdf502ad0f7e9 Mon Sep 17 00:00:00 2001 From: bymyself Date: Wed, 3 Jul 2024 17:30:07 -0700 Subject: [PATCH] Skip state check hook on first load (#3915) --- 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 041c8312..39bc4a81 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; };