mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-24 05:48:59 +08:00
refactor(editor): rename model.doc to store (#12172)
This commit is contained in:
@@ -80,7 +80,7 @@ export const replaceIdMiddleware =
|
||||
model.props.reference = idMap.get(original)!;
|
||||
} else if (
|
||||
model.props.refFlavour === 'affine:frame' &&
|
||||
!model.doc.hasBlock(original)
|
||||
!model.store.hasBlock(original)
|
||||
) {
|
||||
const newId = idGenerator();
|
||||
idMap.set(original, newId);
|
||||
|
||||
Reference in New Issue
Block a user