mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-02-22 05:48:31 +08:00
Only rewrite local settings when present
This commit is contained in:
parent
04bc309e50
commit
d4731c39be
1 changed files with 5 additions and 5 deletions
|
@ -66,12 +66,12 @@ class SettingsStore {
|
|||
_loadSettings() {
|
||||
const settings = load(SETTINGS_KEY);
|
||||
|
||||
// Rewrite settings for backward compatibility
|
||||
if (!Object.values(EDITOR_THEME).includes(settings.editor_theme)) {
|
||||
delete settings.editor_theme;
|
||||
}
|
||||
|
||||
if (settings) {
|
||||
// Rewrite settings for backward compatibility
|
||||
if (!Object.values(EDITOR_THEME).includes(settings.editor_theme)) {
|
||||
delete settings.editor_theme;
|
||||
}
|
||||
|
||||
this._settings = { ...this._settings, ...settings };
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue