fix(core): new config migration to recover profile without ID

This commit is contained in:
Clem
2023-07-10 18:03:14 +02:00
parent a4136bec6e
commit 0313e872fd

View File

@@ -351,6 +351,14 @@ export class ConfigService {
delete window.localStorage.lastSerialConnection
config.version = 3
}
if (config.version < 4) {
for (const p of config.profiles ?? []) {
if (!p.id) {
p.id = `${p.type}:custom:${uuidv4()}`
}
}
config.version = 4
}
}
private async maybeDecryptConfig (store) {