mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-24 04:27:27 +08:00
feat: seperate createDoc and createStore (#11182)
This commit is contained in:
@@ -92,7 +92,7 @@ export async function switchToPage(page: Page, docId?: string) {
|
||||
docId = docMetas[0].id;
|
||||
}
|
||||
|
||||
const doc = collection.getDoc(docId);
|
||||
const doc = collection.getDoc(docId)?.getStore();
|
||||
if (!doc) return;
|
||||
editor.doc = doc;
|
||||
}, docId);
|
||||
|
||||
Reference in New Issue
Block a user