mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-01-11 02:15:17 +00:00
fix formatting
This commit is contained in:
parent
34eccd863b
commit
9be0b30cf1
@ -10,9 +10,9 @@ function checkState() {
|
||||
const currentState = app.graph.serialize();
|
||||
if (!graphEqual(activeState, currentState)) {
|
||||
undo.push(activeState);
|
||||
if(undo.length > MAX_HISTORY) {
|
||||
undo.shift();
|
||||
}
|
||||
if (undo.length > MAX_HISTORY) {
|
||||
undo.shift();
|
||||
}
|
||||
activeState = clone(currentState);
|
||||
redo.length = 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user