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)} >