mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
refactor(editor): rename model.doc to store (#12172)
This commit is contained in:
@@ -440,7 +440,7 @@ export async function assertParentBlockId(
|
||||
if (!model) {
|
||||
throw new Error(`Block with id ${blockId} not found`);
|
||||
}
|
||||
return model.doc.getParent(model)?.id;
|
||||
return model.store.getParent(model)?.id;
|
||||
},
|
||||
{ blockId }
|
||||
);
|
||||
@@ -458,7 +458,7 @@ export async function assertParentBlockFlavour(
|
||||
if (!model) {
|
||||
throw new Error(`Block with id ${blockId} not found`);
|
||||
}
|
||||
return model.doc.getParent(model)?.flavour;
|
||||
return model.store.getParent(model)?.flavour;
|
||||
},
|
||||
{ blockId }
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user