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

This commit is contained in:
Alex Yang
2023-06-28 19:06:13 +08:00
committed by GitHub
parent 92f378aefc
commit 80c2a78273

View File

@@ -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,
},