From 1938b618d4dd1ca3b9c935aa091811fda53de40d Mon Sep 17 00:00:00 2001 From: minie4 Date: Tue, 6 Jun 2023 23:54:53 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=20Fix=20timetable=20groups=20not?= =?UTF-8?q?=20getting=20saved?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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); });