Skip to content

Commit

Permalink
Fix(p-image): Update key
Browse files Browse the repository at this point in the history
  • Loading branch information
Vija02 committed Feb 18, 2025
1 parent a187d6e commit 86754b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/simple-image/view/ImageRenderer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@ const ImageRenderer = () => {

return images.map((imgSrc, i) => (
<div
key={imgSrc}
style={{
position: "absolute",
width: "100vw",
height: "100vh",
opacity: imgIndex === i ? 1 : 0,
}}
>
<ImageRenderView key={imgSrc} src={imgSrc} />
<ImageRenderView src={imgSrc} />
</div>
));
};
Expand Down

0 comments on commit 86754b2

Please sign in to comment.