diff --git a/src/components/Scroll/Figure/Figure.tsx b/src/components/Scroll/Figure/Figure.tsx index b1d3f5e7..c0a9e254 100644 --- a/src/components/Scroll/Figure/Figure.tsx +++ b/src/components/Scroll/Figure/Figure.tsx @@ -39,20 +39,12 @@ const ScrollCanvasFigure: React.FC<CanvasProps> = ({ canvas, canvasInfo }) => { <StyledFigure> {painting?.map((body) => { return ( - <StyledFigurePlaceholder ratio={aspectRatio}> + <StyledFigurePlaceholder ratio={aspectRatio} key={body?.id}> {display === "thumbnail" && ( - <FigureThumbnail - body={body} - label={canvas?.label} - key={body?.id} - /> + <FigureThumbnail body={body} label={canvas?.label} /> )} {display === "image-viewer" && ( - <FigureImageViewer - label={canvas?.label} - body={body} - key={body?.id} - /> + <FigureImageViewer label={canvas?.label} body={body} /> )} </StyledFigurePlaceholder> );