Skip to content

Commit

Permalink
chore: map에 key 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
sinji2102 committed Jul 12, 2024
1 parent 7a4bfd8 commit e4109ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/main/components/chips/Chips.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ const Chips = ({ handleGenre }: { handleGenre: (value: string) => void }) => {
setChipState("ALL");
}}
/>
{CHIP_LIST.map((item) => {
{CHIP_LIST.map((item, i) => {
const GenreIcon = item.icon ? item.icon : () => <></>;
return (
<Chip
key={item.genre} // key 세팅하기!!
key={`performance-${i}`}
label={item.label}
color={chipState === item.genre ? "white" : "gray"}
icon={<GenreIcon />}
Expand Down

0 comments on commit e4109ab

Please sign in to comment.