Skip to content

Commit

Permalink
fix(web/componenets/carousel): key by index
Browse files Browse the repository at this point in the history
  • Loading branch information
mafewtm committed Aug 24, 2024
1 parent 54e162d commit 3c5e3c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/src/components/carousel/Carousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ export default function Media() {
'https://raw.githubusercontent.com/mafewtm/m_loading/main/web/src/assets/images/4.png',
];

const slides = images.map((url) => (
<Carousel.Slide key={url}>
const slides = images.map((url, index) => (
<Carousel.Slide key={index}>
<Image src={url} />
</Carousel.Slide>
));
Expand Down

0 comments on commit 3c5e3c6

Please sign in to comment.