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 set name

MingLiang Wang8c1636f1a20d
diff --git a/packages/data-center/src/datacenter.ts b/packages/data-center/src/datacenter.ts
index 2782bf1cd6..47d4480e71 100644
--- a/packages/data-center/src/datacenter.ts
+++ b/packages/data-center/src/datacenter.ts
@@ -198,11 +198,11 @@ export class DataCenter {
assert(workspace?.room, 'No workspace to set meta');
const update: Partial<WorkspaceMeta> = {};
if (name) {
- workspace.doc.meta.setName(name);
+ workspace.meta.setName(name);
update.name = name;
}
if (avatar) {
- workspace.doc.meta.setAvatar(avatar);
+ workspace.meta.setAvatar(avatar);
update.avatar = avatar;
}
// may run for change workspace meta