There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
Update libs/components/editor-core/src/editor/clipboard/utils.ts
Qi61f15ba843ab
diff --git a/libs/components/editor-core/src/editor/clipboard/utils.ts b/libs/components/editor-core/src/editor/clipboard/utils.tsindex f9ae879b5c..aedc28c22c 100644--- a/libs/components/editor-core/src/editor/clipboard/utils.ts+++ b/libs/components/editor-core/src/editor/clipboard/utils.ts@@ -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);