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

@@ -201,7 +201,7 @@ async function initEmptyEditor({
window.doc = firstDoc;
waitForMountPageEditor(firstDoc).catch;
} else {
collection.slots.docAdded.on(docId => {
collection.slots.docCreated.on(docId => {
const doc = collection.getDoc(docId);
if (!doc) {
throw new Error(`Failed to get doc ${docId}`);