mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-11 15:16:28 +08:00
chore(editor): rename std.doc to std.store (#9596)
This commit is contained in:
@@ -218,7 +218,7 @@ export class BlockComponent<
|
||||
|
||||
this.std.view.setBlock(this);
|
||||
|
||||
const disposable = this.std.doc.slots.blockUpdated.on(({ type, id }) => {
|
||||
const disposable = this.std.store.slots.blockUpdated.on(({ type, id }) => {
|
||||
if (id === this.model.id && type === 'delete') {
|
||||
this.std.view.deleteBlock(this);
|
||||
disposable.dispose();
|
||||
|
||||
@@ -9,7 +9,7 @@ export class ViewStore extends LifeCycleWatcher {
|
||||
private readonly _fromId = (
|
||||
blockId: string | undefined | null
|
||||
): BlockComponent | null => {
|
||||
const id = blockId ?? this.std.doc.root?.id;
|
||||
const id = blockId ?? this.std.store.root?.id;
|
||||
if (!id) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user