mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-25 06:18:45 +08:00
refactor(editor): remove block models global type (#10086)
This commit is contained in:
@@ -506,12 +506,7 @@ export class Transformer {
|
||||
|
||||
const actualIndex =
|
||||
startIndex !== undefined ? startIndex + index : undefined;
|
||||
doc.addBlock(
|
||||
flavour as BlockSuite.Flavour,
|
||||
draft as object,
|
||||
parentId,
|
||||
actualIndex
|
||||
);
|
||||
doc.addBlock(flavour, draft as object, parentId, actualIndex);
|
||||
|
||||
const model = doc.getBlock(id)?.model;
|
||||
if (!model) {
|
||||
|
||||
Reference in New Issue
Block a user