feat: seperate createDoc and createStore (#11182)
This commit is contained in:
@@ -8,7 +8,7 @@ export function getDocFromUrlParams(collection: Workspace, url: URL) {
|
||||
const docId = decodeURIComponent(url.hash.slice(1));
|
||||
|
||||
if (docId) {
|
||||
doc = collection.getDoc(docId);
|
||||
doc = collection.getDoc(docId)?.getStore() ?? null;
|
||||
}
|
||||
if (!doc) {
|
||||
const blockCollection = collection.docs.values().next().value as Doc;
|
||||
|
||||
Reference in New Issue
Block a user