refactor(editor): merge docCreated and docAdded slot (#9489)

This commit is contained in:
Saul-Mirone
2025-01-02 11:47:14 +00:00
parent bae0cc349d
commit 53f7480cb8
6 changed files with 5 additions and 7 deletions

View File

@@ -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());