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 { import {
BlockPendantProvider,
CreateView, CreateView,
RenderBlock, RenderBlock,
useCurrentView, useCurrentView,
useOnSelect, useOnSelect,
BlockPendantProvider,
} from '@toeverything/components/editor-core'; } from '@toeverything/components/editor-core';
import { styled } from '@toeverything/components/ui'; import { styled } from '@toeverything/components/ui';
import type { import type {
@ -60,8 +60,8 @@ const ChildrenView = ({
{childrenIds.map((childId, idx) => { {childrenIds.map((childId, idx) => {
if (isKanbanScene) { if (isKanbanScene) {
return ( return (
<StyledBorder> <StyledBorder key={childId}>
<RenderBlock key={childId} blockId={childId} /> <RenderBlock blockId={childId} />
</StyledBorder> </StyledBorder>
); );
} }