Skip to content

Commit

Permalink
Address key iterator.
Browse files Browse the repository at this point in the history
  • Loading branch information
mathewjordan committed Nov 21, 2024
1 parent 274aed5 commit a03b3b1
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions src/components/Scroll/Figure/Figure.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
);
Expand Down

0 comments on commit a03b3b1

Please sign in to comment.