mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-15 05:37:32 +00:00
refactor(editor): merge docCreated and docAdded slot (#9489)
This commit is contained in:
@@ -94,7 +94,6 @@ export class DocCollection {
|
||||
meta: DocCollectionMeta;
|
||||
|
||||
slots = {
|
||||
docAdded: new Slot<string>(),
|
||||
docUpdated: new Slot(),
|
||||
docRemoved: new Slot<string>(),
|
||||
docCreated: new Slot<string>(),
|
||||
@@ -163,7 +162,6 @@ export class DocCollection {
|
||||
idGenerator: this.idGenerator,
|
||||
});
|
||||
this.blockCollections.set(doc.id, doc);
|
||||
this.slots.docAdded.emit(doc.id);
|
||||
});
|
||||
|
||||
this.meta.docMetaUpdated.on(() => this.slots.docUpdated.emit());
|
||||
|
||||
Reference in New Issue
Block a user