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

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

No files matched your search

@@ -16,7 +16,7 @@ export function useDocCollectionPage(
useEffect(() => {
const group = new DisposableGroup();
group.add(
docCollection.slots.docAdded.on(id => {
docCollection.slots.docCreated.on(id => {
if (pageId === id) {
setPage(docCollection.getDoc(id));
}
@@ -16,7 +16,7 @@ export function useDocCollectionPage(
useEffect(() => {
const group = new DisposableGroup();
group.add(
docCollection.slots.docAdded.on(id => {
docCollection.slots.docCreated.on(id => {
if (pageId === id) {
setPage(docCollection.getDoc(id));
}