mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-23 05:42:30 +03:00
Merge branch 'fix/experience' of github.com:toeverything/AFFiNE into fix/experience
This commit is contained in:
commit
59cd2af918
@ -26,7 +26,7 @@ export const getClipInfoOfBlockById = async (
|
||||
properties: blockView.getSelProperties(block, {}),
|
||||
children: [] as ClipBlockInfo[],
|
||||
};
|
||||
const children = await block?.children();
|
||||
const children = await block?.children() ?? [];
|
||||
|
||||
for (let i = 0; i < children.length; i++) {
|
||||
const childInfo = await getClipInfoOfBlockById(editor, children[i].id);
|
||||
|
Loading…
Reference in New Issue
Block a user