From fdbc015dbf6d93c6fc129c55a1332eea4135d01a Mon Sep 17 00:00:00 2001 From: jubnl Date: Sun, 5 Apr 2026 22:25:55 +0200 Subject: [PATCH] fix(memories): re-fetch EXIF info when navigating between lightbox photos The navigateTo function was clearing lightboxInfo without re-fetching it, causing the EXIF sidebar to disappear and nav button placement to break. Mirrors the fetch logic already present in the thumbnail click handler. Fixes #439 --- client/src/components/Memories/MemoriesPanel.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/src/components/Memories/MemoriesPanel.tsx b/client/src/components/Memories/MemoriesPanel.tsx index a466e26..baed3cd 100644 --- a/client/src/components/Memories/MemoriesPanel.tsx +++ b/client/src/components/Memories/MemoriesPanel.tsx @@ -956,6 +956,9 @@ export default function MemoriesPanel({ tripId, startDate, endDate }: MemoriesPa setLightboxUserId(photo.user_id) setLightboxInfo(null) fetchImageAsBlob('/api' + buildProviderAssetUrl(photo, 'original')).then(setLightboxOriginalSrc) + setLightboxInfoLoading(true) + apiClient.get(buildProviderAssetUrl(photo, 'info')) + .then(r => setLightboxInfo(r.data)).catch(() => {}).finally(() => setLightboxInfoLoading(false)) } const exifContent = lightboxInfo ? (