mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-25 10:22:55 +08:00
refactor(editor): rename model.doc to store (#12172)
This commit is contained in:
@@ -88,7 +88,7 @@ export class PreviewHelper {
|
||||
setup(di) {
|
||||
di.override(BlockViewIdentifier('affine:image'), () => {
|
||||
return (model: BlockModel) => {
|
||||
const parent = model.doc.getParent(model.id);
|
||||
const parent = model.store.getParent(model.id);
|
||||
|
||||
if (parent?.flavour === 'affine:surface') {
|
||||
return literal`affine-edgeless-placeholder-preview-image`;
|
||||
|
||||
@@ -75,7 +75,7 @@ export class AffineFrameTitle extends SignalWatcher(
|
||||
}
|
||||
|
||||
get doc() {
|
||||
return this.model.doc;
|
||||
return this.model.store;
|
||||
}
|
||||
|
||||
get gfx() {
|
||||
|
||||
Reference in New Issue
Block a user