diff --git a/src/store.js b/src/store.js index 5d36c50..3e57386 100644 --- a/src/store.js +++ b/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); });