🐛 Fix data fetch after changing settings

This commit is contained in:
2023-01-02 19:55:00 +01:00
parent 7f51e29e76
commit ef7f755613

View File

@ -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);