mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-27 19:02:23 +08:00
refactor(editor): should not rely on doc collection type (#9501)
This commit is contained in:
@@ -221,7 +221,7 @@ export class AffineReference extends WithDisposable(ShadowlessElement) {
|
||||
const doc = this.doc;
|
||||
if (doc) {
|
||||
this._disposables.add(
|
||||
doc.collection.slots.docUpdated.on(() => this._updateRefMeta(doc))
|
||||
doc.collection.slots.docListUpdated.on(() => this._updateRefMeta(doc))
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user