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
9be0b30c
"docs/vscode:/vscode.git/clone" did not exist on "6c6a246461829d7ba6af26655c7418ad228a28f3"
Commit
9be0b30c
authored
Nov 27, 2023
by
pythongosssss
Browse files
fix formatting
parent
34eccd86
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
web/extensions/core/undoRedo.js
web/extensions/core/undoRedo.js
+3
-3
No files found.
web/extensions/core/undoRedo.js
View file @
9be0b30c
...
@@ -10,7 +10,7 @@ function checkState() {
...
@@ -10,7 +10,7 @@ function checkState() {
const
currentState
=
app
.
graph
.
serialize
();
const
currentState
=
app
.
graph
.
serialize
();
if
(
!
graphEqual
(
activeState
,
currentState
))
{
if
(
!
graphEqual
(
activeState
,
currentState
))
{
undo
.
push
(
activeState
);
undo
.
push
(
activeState
);
if
(
undo
.
length
>
MAX_HISTORY
)
{
if
(
undo
.
length
>
MAX_HISTORY
)
{
undo
.
shift
();
undo
.
shift
();
}
}
activeState
=
clone
(
currentState
);
activeState
=
clone
(
currentState
);
...
...
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