fix: incorrect key prop

This commit is contained in:
lawvs 2022-08-15 11:52:26 +08:00
parent 72868bec31
commit 4c4e98d885

View File

@ -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>
);
}