mirror of
https://github.com/imputnet/cobalt.git
synced 2024-12-29 11:06:10 +00:00
web/lib/settings: use default settings as base when loading from storage
This commit is contained in:
parent
bc63b0c6b7
commit
2b907e5684
|
@ -21,7 +21,10 @@ const loadFromStorage = () => {
|
|||
return defaultSettings;
|
||||
}
|
||||
|
||||
return JSON.parse(settings) as CobaltSettings;
|
||||
return {
|
||||
...defaultSettings,
|
||||
...JSON.parse(settings) as CobaltSettings
|
||||
}
|
||||
}
|
||||
|
||||
let update: (_: Updater<CobaltSettings>) => void;
|
||||
|
|
Loading…
Reference in a new issue