fix: disable sqlite provider (#2888)

Co-authored-by: Alex Yang <himself65@outlook.com>
This commit is contained in:
Peng Xiao
2023-06-28 15:01:15 +08:00
committed by GitHub
parent fd0aa4a2ee
commit 79b3b1dabc
14 changed files with 145 additions and 119 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
import { DebugLogger } from '@affine/debug';
import { config } from '@affine/env';
import { WorkspaceFlavour, WorkspaceVersion } from '@affine/env/workspace';
import type { RootWorkspaceMetadataV2 } from '@affine/workspace/atom';
import { rootWorkspacesMetadataAtom } from '@affine/workspace/atom';
@@ -52,7 +53,7 @@ rootWorkspacesMetadataAtom.onMount = setAtom => {
}, 0);
}
if (environment.isDesktop) {
if (environment.isDesktop && config.enableSQLiteProvider) {
window.apis?.workspace
.list()
.then(workspaceIDs => {