mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 21:27:20 +00:00
feat(editor): improve api for store, and add docs (#10941)
This commit is contained in:
@@ -45,7 +45,7 @@ export function calcDropTarget(
|
||||
*/
|
||||
allowSublist: boolean = true
|
||||
): DropTarget | null {
|
||||
const schema = model.doc.getSchemaByFlavour('affine:database');
|
||||
const schema = model.doc.schema.get('affine:database');
|
||||
const children = schema?.model.children ?? [];
|
||||
|
||||
let shouldAppendToDatabase = true;
|
||||
|
||||
Reference in New Issue
Block a user