Skip to content

Commit c4b6c9f

Browse files
authored
[Sync] Skip state check hook on first load (#87)
1 parent 218b0aa commit c4b6c9f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/scripts/changeTracker.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,11 @@ export class ChangeTracker {
190190
const onNodeAdded = LiteGraph.LGraph.prototype.onNodeAdded;
191191
LiteGraph.LGraph.prototype.onNodeAdded = function () {
192192
const v = onNodeAdded?.apply(this, arguments);
193-
const ct = changeTracker();
194-
if (!ct.isOurLoad) {
195-
ct.checkState();
193+
if (!app?.configuringGraph) {
194+
const ct = changeTracker();
195+
if (!ct.isOurLoad) {
196+
ct.checkState();
197+
}
196198
}
197199
return v;
198200
};

0 commit comments

Comments
 (0)