mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-18 14:56:59 +08:00
chore(editor): rename std.doc to std.store (#9596)
This commit is contained in:
@@ -108,7 +108,7 @@ export class AffineScrollAnchoringWidget extends WidgetComponent {
|
||||
|
||||
// listen for document updates
|
||||
this.disposables.add(
|
||||
this.std.doc.slots.blockUpdated
|
||||
this.std.store.slots.blockUpdated
|
||||
.filter(v => v.type === 'add' && v.id === id)
|
||||
.once(() => this.#moveToAnchorInEdgeless(id))
|
||||
);
|
||||
@@ -157,7 +157,7 @@ export class AffineScrollAnchoringWidget extends WidgetComponent {
|
||||
|
||||
// listen for document updates
|
||||
this.disposables.add(
|
||||
this.std.doc.slots.blockUpdated
|
||||
this.std.store.slots.blockUpdated
|
||||
.filter(v => v.type === 'add' && v.id === id)
|
||||
.once(() => this.#moveToAnchorInPage(id))
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user