🚑 Fix timetable groups not getting saved
This commit is contained in:
10
src/store.js
10
src/store.js
@ -20,9 +20,13 @@ watch(classFilter, (newValue) => {
|
|||||||
localStorage.setItem("classFilter", newValue);
|
localStorage.setItem("classFilter", newValue);
|
||||||
fetchData(getNextAndPrevDay(selectedDate.value), false);
|
fetchData(getNextAndPrevDay(selectedDate.value), false);
|
||||||
});
|
});
|
||||||
watch(timetableGroups, (newValue) => {
|
watch(
|
||||||
localStorage.setItem("timetableGroups", JSON.stringify(newValue));
|
timetableGroups,
|
||||||
});
|
(newValue) => {
|
||||||
|
localStorage.setItem("timetableGroups", JSON.stringify(newValue));
|
||||||
|
},
|
||||||
|
{ deep: true }
|
||||||
|
);
|
||||||
watch(theme, (newValue) => {
|
watch(theme, (newValue) => {
|
||||||
localStorage.setItem("theme", newValue);
|
localStorage.setItem("theme", newValue);
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user