mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 21:27:20 +00:00
refactor(editor): reduce dependency to doc collection (#9492)
This commit is contained in:
@@ -66,7 +66,7 @@ export class NoteRenderer
|
||||
},
|
||||
} satisfies AffineTextAttributes as BaseTextAttributes
|
||||
);
|
||||
collection.setDocMeta(note.id, { title: rowContent });
|
||||
collection.meta.setDocMeta(note.id, { title: rowContent });
|
||||
if (note.root) {
|
||||
(note.root as RootBlockModel).title.insert(rowContent ?? '', 0);
|
||||
note.root.children
|
||||
|
||||
Reference in New Issue
Block a user