refactor(editor): remove block models global type (#10086)

This commit is contained in:
Saul-Mirone
2025-02-11 11:00:57 +00:00
parent a725df6ebe
commit 39eb8625d6
157 changed files with 402 additions and 621 deletions
@@ -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) {