🚑 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);
|
||||
fetchData(getNextAndPrevDay(selectedDate.value), false);
|
||||
});
|
||||
watch(timetableGroups, (newValue) => {
|
||||
localStorage.setItem("timetableGroups", JSON.stringify(newValue));
|
||||
});
|
||||
watch(
|
||||
timetableGroups,
|
||||
(newValue) => {
|
||||
localStorage.setItem("timetableGroups", JSON.stringify(newValue));
|
||||
},
|
||||
{ deep: true }
|
||||
);
|
||||
watch(theme, (newValue) => {
|
||||
localStorage.setItem("theme", newValue);
|
||||
});
|
||||
|
Reference in New Issue
Block a user