Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix(web): bypass adapter list error (#2903)

Alex Yang80c2a78273b3
diff --git a/apps/web/src/adapters/workspace.ts b/apps/web/src/adapters/workspace.ts
index 88bb5b921a..e619ce995f 100644
--- a/apps/web/src/adapters/workspace.ts
+++ b/apps/web/src/adapters/workspace.ts
@@ -14,6 +14,10 @@ const unimplemented = () => {
throw new Error('Not implemented');
};
+const bypassList = async () => {
+ return [];
+};
+
export const WorkspaceAdapters = {
[WorkspaceFlavour.AFFINE]: AffineAdapter,
[WorkspaceFlavour.LOCAL]: LocalAdapter,
@@ -25,7 +29,7 @@ export const WorkspaceAdapters = {
// todo: implement this
CRUD: {
get: unimplemented,
- list: unimplemented,
+ list: bypassList,
delete: unimplemented,
create: unimplemented,
},
@@ -47,7 +51,7 @@ export const WorkspaceAdapters = {
// todo: implement this
CRUD: {
get: unimplemented,
- list: unimplemented,
+ list: bypassList,
delete: unimplemented,
create: unimplemented,
},