mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-27 10:52:40 +08:00
chore(editor): rename std.doc to std.store (#9596)
This commit is contained in:
@@ -317,7 +317,9 @@ export class EdgelessMindmapMenu extends EdgelessToolbarToolMixin(
|
||||
</div>
|
||||
`;
|
||||
})}
|
||||
${this.std.doc.get(FeatureFlagService).getFlag('enable_mind_map_import')
|
||||
${this.std.store
|
||||
.get(FeatureFlagService)
|
||||
.getFlag('enable_mind_map_import')
|
||||
? this._importMindMapEntry()
|
||||
: nothing}
|
||||
</div>
|
||||
|
||||
@@ -29,7 +29,7 @@ export function addText(gfx: GfxController, event: PointerEventState) {
|
||||
});
|
||||
gfx.doc.captureSync();
|
||||
const textElement = gfx.getElementById(id) as TextElementModel;
|
||||
const edgelessView = gfx.std.view.getBlock(gfx.std.doc.root!.id);
|
||||
const edgelessView = gfx.std.view.getBlock(gfx.std.store.root!.id);
|
||||
mountTextElementEditor(
|
||||
textElement,
|
||||
edgelessView as EdgelessRootBlockComponent
|
||||
|
||||
Reference in New Issue
Block a user