feat: seperate createDoc and createStore (#11182)
This commit is contained in:
70 files changed
+337
-312
No files matched your search
@@ -52,7 +52,7 @@ export function createTestEditor(store: Store, workspace: Workspace) {
|
||||
editor.std
|
||||
.get(RefNodeSlotsProvider)
|
||||
.docLinkClicked.subscribe(({ pageId: docId }) => {
|
||||
const target = workspace.getDoc(docId);
|
||||
const target = workspace.getDoc(docId)?.getStore();
|
||||
if (!target) {
|
||||
throw new Error(`Failed to jump to doc ${docId}`);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user