mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-15 21:43:45 +08:00
make coderabbit happy
This commit is contained in:
@@ -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;
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user