Skip to content

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.

fix: incorrect key prop

lawvs4c4e98d885bf
diff --git a/libs/components/editor-blocks/src/utils/WithTreeViewChildren.tsx b/libs/components/editor-blocks/src/utils/WithTreeViewChildren.tsx
index f4fdd29240..e7e497f2ef 100644
--- a/libs/components/editor-blocks/src/utils/WithTreeViewChildren.tsx
+++ b/libs/components/editor-blocks/src/utils/WithTreeViewChildren.tsx
@@ -1,9 +1,9 @@
import {
+ BlockPendantProvider,
CreateView,
RenderBlock,
useCurrentView,
useOnSelect,
- BlockPendantProvider,
} from '@toeverything/components/editor-core';
import { styled } from '@toeverything/components/ui';
import type {
@@ -60,8 +60,8 @@ const ChildrenView = ({
{childrenIds.map((childId, idx) => {
if (isKanbanScene) {
return (
- <StyledBorder>
- <RenderBlock key={childId} blockId={childId} />
+ <StyledBorder key={childId}>
+ <RenderBlock blockId={childId} />
</StyledBorder>
);
}