mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-01 23:56:39 +08:00
make coderabbit happy
This commit is contained in:
parent
7fac17f189
commit
53156abf1b
@ -130,7 +130,7 @@ export const useSyncStore = createPersistStore(
|
|||||||
}),
|
}),
|
||||||
{
|
{
|
||||||
name: StoreKey.Sync,
|
name: StoreKey.Sync,
|
||||||
version: 1.2,
|
version: 1.3,
|
||||||
|
|
||||||
migrate(persistedState, version) {
|
migrate(persistedState, version) {
|
||||||
const newState = persistedState as typeof DEFAULT_SYNC_STATE;
|
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;
|
return newState as any;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user