mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-08-24 05:37:53 +08:00
fix formatting
This commit is contained in:
parent
3b53ad4b30
commit
a2b2433a2e
@ -10,9 +10,9 @@ 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);
|
||||||
redo.length = 0;
|
redo.length = 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user