mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-17 10:06:17 +08:00
Update libs/components/editor-core/src/editor/clipboard/utils.ts
Co-authored-by: Whitewater <me@waterwater.moe>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user