mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-17 18:16:15 +08:00
chore: merge blocksuite source code (#9213)
This commit is contained in:
@@ -116,7 +116,7 @@ function generateMarkdownPreviewBuilder(
|
||||
blocks: BlockDocumentInfo[]
|
||||
) {
|
||||
function yblockToDraftModal(yblock: YBlock): DraftModel | null {
|
||||
const flavour = yblock.get('sys:flavour');
|
||||
const flavour = yblock.get('sys:flavour') as string;
|
||||
const blockSchema = blocksuiteSchema.flavourSchemaMap.get(flavour);
|
||||
if (!blockSchema) {
|
||||
return null;
|
||||
@@ -131,7 +131,7 @@ function generateMarkdownPreviewBuilder(
|
||||
|
||||
return {
|
||||
...props,
|
||||
id: yblock.get('sys:id'),
|
||||
id: yblock.get('sys:id') as string,
|
||||
flavour,
|
||||
children: [],
|
||||
role: blockSchema.model.role,
|
||||
|
||||
Reference in New Issue
Block a user