From ba0687af94c86c792aae16619d95af7188145dcc Mon Sep 17 00:00:00 2001 From: Romein van Buren Date: Wed, 13 Jul 2022 12:06:48 +0200 Subject: [PATCH] Stringify dashboard settings --- gui/dashboard/lib.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/dashboard/lib.js b/gui/dashboard/lib.js index c8be324..217a46e 100644 --- a/gui/dashboard/lib.js +++ b/gui/dashboard/lib.js @@ -12,10 +12,10 @@ function createSettingsStore() { const s = writable(defaults); function updateStorage(val) { - window.localStorage.setItem('statusdash', { + window.localStorage.setItem('statusdash', JSON.stringify({ ...defaults, ...JSON.stringify(val), - }); + })); s.set(val); }