From 5c24213b0e6020433c816b8fa977abdf754042cd Mon Sep 17 00:00:00 2001 From: jubnl Date: Thu, 16 Apr 2026 21:35:52 +0200 Subject: [PATCH] fix(journey): gallery lightbox navigates all photos, not just same-day entry --- client/src/pages/JourneyDetailPage.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/pages/JourneyDetailPage.tsx b/client/src/pages/JourneyDetailPage.tsx index 028b0ecc..1db6de3c 100644 --- a/client/src/pages/JourneyDetailPage.tsx +++ b/client/src/pages/JourneyDetailPage.tsx @@ -908,11 +908,11 @@ function GalleryView({ entries, journeyId, userId, trips, onPhotoClick, onRefres ) : (
- {allPhotos.map(({ photo, entry }) => ( + {allPhotos.map(({ photo, entry }, i) => (
onPhotoClick(entry.photos, entry.photos.indexOf(photo))} + onClick={() => onPhotoClick(allPhotos.map(a => a.photo), i)} >