mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
feat(editor): merge store and blocks (#9591)
This commit is contained in:
@@ -194,7 +194,7 @@ async function initEmptyEditor({
|
||||
}
|
||||
|
||||
if (noInit) {
|
||||
const firstDoc = collection.docs.values().next().value?.getBlocks() as
|
||||
const firstDoc = collection.docs.values().next().value?.getStore() as
|
||||
| ReturnType<typeof collection.createDoc>
|
||||
| undefined;
|
||||
if (firstDoc) {
|
||||
|
||||
Reference in New Issue
Block a user