make coderabbit happy

This commit is contained in:
Wang Guan 2024-10-22 21:35:13 +09:00
parent 7fac17f189
commit 53156abf1b

View File

@ -130,7 +130,7 @@ export const useSyncStore = createPersistStore(
}),
{
name: StoreKey.Sync,
version: 1.2,
version: 1.3,
migrate(persistedState, version) {
const newState = persistedState as typeof DEFAULT_SYNC_STATE;
@ -148,6 +148,10 @@ export const useSyncStore = createPersistStore(
}
}
if (version < 1.3) {
newState.autoSync = { ...DEFAULT_SYNC_STATE.autoSync };
}
return newState as any;
},
},