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: window.client.inspect not found (#452)

Whitewater1158bc930433
diff --git a/libs/datasource/db-service/src/services/database/index.ts b/libs/datasource/db-service/src/services/database/index.ts
index 700b8511b9..570de624cb 100644
--- a/libs/datasource/db-service/src/services/database/index.ts
+++ b/libs/datasource/db-service/src/services/database/index.ts
@@ -47,7 +47,7 @@ async function _getBlockDatabase(
token,
})
);
- (window as any).client = workspaces[workspace];
+ (window as any).client = await workspaces[workspace];
}
return workspaces[workspace];
}