From 404d0311176830c64507dd297bfe29117a6db2b4 Mon Sep 17 00:00:00 2001 From: wukko Date: Wed, 10 Jul 2024 23:29:47 +0600 Subject: [PATCH] web/lib/settings: use default settings as base when loading from storage --- web/src/lib/settings.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/src/lib/settings.ts b/web/src/lib/settings.ts index f005ced4..279ac87f 100644 --- a/web/src/lib/settings.ts +++ b/web/src/lib/settings.ts @@ -21,7 +21,10 @@ const loadFromStorage = () => { return defaultSettings; } - return JSON.parse(settings) as CobaltSettings; + return { + ...defaultSettings, + ...JSON.parse(settings) as CobaltSettings + } } let update: (_: Updater) => void;