fix image key in image list item

This commit is contained in:
luisa.bellitto 2025-06-23 21:14:50 +02:00 committed by Rudi Regentonne
parent c47d31703c
commit ec27a07119

View file

@ -8,8 +8,8 @@ export default function StandardImageList() {
<StyledEngineProvider injectFirst> <StyledEngineProvider injectFirst>
<Box className="box"> <Box className="box">
<Grid container spacing={1} className="image-list"> <Grid container spacing={1} className="image-list">
{itemData.map((item) => ( {itemData.map((item, index) => (
<ImageListItem key={item.img}> <ImageListItem key={index}>
<img <img
srcSet={`${item.img}?w=164&h=164&fit=crop&auto=format&dpr=2 2x`} srcSet={`${item.img}?w=164&h=164&fit=crop&auto=format&dpr=2 2x`}
src={`${item.img}?w=164&h=164&fit=crop&auto=format`} src={`${item.img}?w=164&h=164&fit=crop&auto=format`}