Skip to content
This repository was archived by the owner on Jul 8, 2025. It is now read-only.

Commit 80ee878

Browse files
committed
fix: add key to array item
1 parent 8b1bb06 commit 80ee878

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/SortableArea.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ export function SortableArea<T extends { id: UniqueIdentifier }>({
8383
>
8484
<SortableContext items={items} strategy={verticalListSortingStrategy}>
8585
{items.map((item, index) => (
86-
<ItemWrapper id={item.id}>{children(item, index)}</ItemWrapper>
86+
<ItemWrapper key={index} id={item.id}>
87+
{children(item, index)}
88+
</ItemWrapper>
8789
))}
8890
</SortableContext>
8991
</DndContext>

0 commit comments

Comments
 (0)