fixed cleardone animation

This commit is contained in:
liyunze 2023-12-02 14:43:53 +08:00
parent e0088dc1e3
commit d68d2f8c97

View file

@ -1341,7 +1341,6 @@ function clearAllDoneTasks() {
tasks[user].todos = tasks[user].todos.filter((t) => !t.done);
}
cancelAnimation();
checkToAnimate();
localStorage.setItem(`tasks`, JSON.stringify(tasks));
renderTaskListToDOM();
@ -1353,7 +1352,6 @@ function clearAllDoneTasks() {
function clearAllTasks() {
localStorage.setItem(`tasks`, "{}");
cancelAnimation();
checkToAnimate();
renderTaskListToDOM();
return {
@ -1387,7 +1385,6 @@ function clearAllExceptStreamer(streamer) {
clearAllDoneTasks();
cancelAnimation();
checkToAnimate();
renderTaskListToDOM();