mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-24 04:27:27 +08:00
refactor(editor): rename store api (#9518)
This commit is contained in:
@@ -194,7 +194,7 @@ async function initEmptyEditor({
|
||||
}
|
||||
|
||||
if (noInit) {
|
||||
const firstDoc = collection.docs.values().next().value?.getDoc() as
|
||||
const firstDoc = collection.docs.values().next().value?.getBlocks() as
|
||||
| ReturnType<typeof collection.createDoc>
|
||||
| undefined;
|
||||
if (firstDoc) {
|
||||
|
||||
Reference in New Issue
Block a user