Merge branch 'fix/experience' of github.com:toeverything/AFFiNE into fix/experience

This commit is contained in:
QiShaoXuan 2022-08-18 20:08:11 +08:00
commit 59cd2af918

View File

@ -26,7 +26,7 @@ export const getClipInfoOfBlockById = async (
properties: blockView.getSelProperties(block, {}), properties: blockView.getSelProperties(block, {}),
children: [] as ClipBlockInfo[], children: [] as ClipBlockInfo[],
}; };
const children = await block?.children(); const children = await block?.children() ?? [];
for (let i = 0; i < children.length; i++) { for (let i = 0; i < children.length; i++) {
const childInfo = await getClipInfoOfBlockById(editor, children[i].id); const childInfo = await getClipInfoOfBlockById(editor, children[i].id);