web/settings: write to storage if migrated
This commit is contained in:
parent
30b7003871
commit
0a471943ca
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ const loadFromStorage = () => {
|
|||
export const loadFromString = (settings: string): PartialSettings => {
|
||||
const parsed = JSON.parse(settings) as AllPartialSettingsWithSchema;
|
||||
if (parsed.schemaVersion < defaultSettings.schemaVersion) {
|
||||
return migrate(parsed);
|
||||
return writeToStorage(migrate(parsed));
|
||||
}
|
||||
|
||||
return parsed as PartialSettings;
|
||||
|
|
Loading…
Reference in a new issue