mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-15 05:37:32 +00:00
feat(editor): improve api for store, and add docs (#10941)
This commit is contained in:
@@ -293,7 +293,7 @@ export class Transformer {
|
||||
}
|
||||
|
||||
const contentBlocks = blockTree.children
|
||||
.map(tree => doc.getBlockById(tree.draft.id))
|
||||
.map(tree => doc.getModelById(tree.draft.id))
|
||||
.filter((x): x is BlockModel => x !== null)
|
||||
.map(model => toDraftModel(model));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user