feat: seperate createDoc and createStore (#11182)
This commit is contained in:
@@ -155,7 +155,7 @@ export class DndService extends Service {
|
||||
getBlocksuiteDndAPI(sourceDocId?: string) {
|
||||
const collection = this.workspaceService.workspace.docCollection;
|
||||
sourceDocId ??= collection.docs.keys().next().value;
|
||||
const doc = sourceDocId ? collection.getDoc(sourceDocId) : null;
|
||||
const doc = sourceDocId ? collection.getDoc(sourceDocId)?.getStore() : null;
|
||||
|
||||
if (!doc) {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user