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.

feat: fix data center

MingLiang Wangad5e7cb2f4ee
diff --git a/packages/data-center/src/datacenter.ts b/packages/data-center/src/datacenter.ts
index e4fe394c71..8e70718c36 100644
--- a/packages/data-center/src/datacenter.ts
+++ b/packages/data-center/src/datacenter.ts
@@ -186,7 +186,7 @@ export class DataCenter {
*/
public async onWorkspacesChange(
callback: (workspaces: WorkspaceUnitCollectionChangeEvent) => void,
- { immediate = true }: { immediate?: boolean }
+ { immediate = true }: { immediate?: boolean } = {}
) {
if (immediate) {
callback({