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
fix lint
DiamondThree228bcd8c06e2
diff --git a/libs/components/editor-blocks/src/blocks/text/TextView.tsx b/libs/components/editor-blocks/src/blocks/text/TextView.tsxindex 64f10fc4f1..8c4c08557f 100644--- a/libs/components/editor-blocks/src/blocks/text/TextView.tsx+++ b/libs/components/editor-blocks/src/blocks/text/TextView.tsx@@ -99,7 +99,7 @@ export const TextView: FC<CreateTextView> = ({if (!parentBlock) {return false;}- let preParent = await parentBlock.previousSibling();+ const preParent = await parentBlock.previousSibling();if (Protocol.Block.Type.group === parentBlock.type) {const children = await block.children();const preNode = await block.physicallyPerviousSibling();@@ -130,8 +130,12 @@ export const TextView: FC<CreateTextView> = ({);if (block.blockProvider.isEmpty()) {await block.remove();- let parentChild = await parentBlock.children();- if (!parentChild.length) {+ const parentChild = await parentBlock.children();+ if (+ parentBlock.type ===+ Protocol.Block.Type.group &&+ !parentChild.length+ ) {await editor.selectionManager.setSelectedNodesIds([preParent.id]);