diff --git a/src/store.js b/src/store.js index ffd11d4..4f3e599 100644 --- a/src/store.js +++ b/src/store.js @@ -19,11 +19,11 @@ export const theme = ref(localStorage.getItem("theme") || "auto"); watch(classFilter, (newValue) => { localStorage.setItem("classFilter", newValue); - fetchData(); + fetchData(getNextAndPrevDay(selectedDate.value), true); }); watch(timetableGroups, (newValue) => { localStorage.setItem("timetableGroups", JSON.stringify(newValue)); - fetchData(); + fetchData(getNextAndPrevDay(selectedDate.value), true); }); watch(language, (newValue) => { localStorage.setItem("lang", newValue);