Skip to content

Commit 25fe74e

Browse files
committed
fix: reset image index
1 parent 84d1b59 commit 25fe74e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/ImagePopup.astro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ const images = Object.entries(allImages)
9393
}
9494

9595
function initImages() {
96+
currentImageIndex = 0;
9697
if (images.length > 0) {
9798
imgElement.src = images[0];
9899
updateIndicators();

0 commit comments

Comments
 (0)