Bump settings version to V3 even when no migration changes needed

This commit is contained in:
Alexander Farber 2025-12-30 09:03:50 +01:00 committed by Mingholy
parent 2c25b2fabd
commit 895cbf71cd
2 changed files with 36 additions and 0 deletions

View file

@ -451,6 +451,12 @@ function migrateV2ToV3(
return result;
}
// Even if no changes, bump version to 3 to skip future migration checks
if (typeof version === 'number' && version < SETTINGS_VERSION) {
result[SETTINGS_VERSION_KEY] = SETTINGS_VERSION;
return result;
}
return null;
}