mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
fix: resolve configVersion of value null
This commit is contained in:
parent
74955989b0
commit
5c92b9971f
1 changed files with 6 additions and 1 deletions
|
|
@ -16,7 +16,12 @@ export const migration: Migration = {
|
|||
'intelligentToggle',
|
||||
'icons',
|
||||
])
|
||||
if (config && (!('configVersion' in config) || config.configVersion < version)) {
|
||||
if (
|
||||
config &&
|
||||
(!('configVersion' in config) ||
|
||||
config.configVersion === null ||
|
||||
config.configVersion < version)
|
||||
) {
|
||||
await storageHelper.set({ platform_GitHub: config, configVersion: version })
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue