Skip to content

Commit

Permalink
Fix: #33 React Key Props 에러 재설정
Browse files Browse the repository at this point in the history
  • Loading branch information
Seok93 committed Jul 6, 2024
1 parent bb76ad5 commit e741b3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/task/kanban/TaskStatusContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function TaskStatusContainer({ statusTask }: TaskStatusContainerP
const index = useMemo(() => order - 1, [order]);

return (
<Draggable draggableId={draggableId} index={index} key={statusId}>
<Draggable draggableId={draggableId} index={index}>
{(statusDragProvided) => (
<article
className="flex min-w-125 grow basis-1/3 flex-col"
Expand Down
2 changes: 1 addition & 1 deletion src/pages/project/KanbanPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default function KanbanPage() {
{...statusDropProvided.droppableProps}
>
{statusTasks.map((statusTask) => (
<TaskStatusContainer statusTask={statusTask} />
<TaskStatusContainer key={statusTask.statusId} statusTask={statusTask} />
))}
{statusDropProvided.placeholder}
</section>
Expand Down

0 comments on commit e741b3c

Please sign in to comment.