Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
24b969d3
Unverified
Commit
24b969d3
authored
Jul 03, 2024
by
bymyself
Committed by
GitHub
Jul 03, 2024
Browse files
Skip state check hook on first load (#3915)
parent
086ac752
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
web/scripts/changeTracker.js
web/scripts/changeTracker.js
+5
-3
No files found.
web/scripts/changeTracker.js
View file @
24b969d3
...
@@ -173,9 +173,11 @@ export class ChangeTracker {
...
@@ -173,9 +173,11 @@ export class ChangeTracker {
const
onNodeAdded
=
LiteGraph
.
LGraph
.
prototype
.
onNodeAdded
;
const
onNodeAdded
=
LiteGraph
.
LGraph
.
prototype
.
onNodeAdded
;
LiteGraph
.
LGraph
.
prototype
.
onNodeAdded
=
function
()
{
LiteGraph
.
LGraph
.
prototype
.
onNodeAdded
=
function
()
{
const
v
=
onNodeAdded
?.
apply
(
this
,
arguments
);
const
v
=
onNodeAdded
?.
apply
(
this
,
arguments
);
const
ct
=
changeTracker
();
if
(
!
app
?.
configuringGraph
)
{
if
(
!
ct
.
isOurLoad
)
{
const
ct
=
changeTracker
();
ct
.
checkState
();
if
(
!
ct
.
isOurLoad
)
{
ct
.
checkState
();
}
}
}
return
v
;
return
v
;
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment