mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-01 23:56:39 +08:00
Update app/store/sync.ts
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
parent
53156abf1b
commit
7869f7cc5f
@ -52,7 +52,11 @@ export const useSyncStore = createPersistStore(
|
||||
(set, get) => ({
|
||||
cloudSync(): boolean {
|
||||
const config = get()[get().provider];
|
||||
return Object.values(config).every((c) => c.toString().length > 0);
|
||||
if (!config) {
|
||||
return false;
|
||||
}
|
||||
return Object.values(config).every((c) => c != null && c.toString().length > 0);
|
||||
}
|
||||
},
|
||||
|
||||
markSyncTime() {
|
||||
|
Loading…
Reference in New Issue
Block a user