Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

fix: pass lat/lng/name to placePhoto in PDF thumbnail fetch

jubnl9f70b56a3a3f
diff --git a/client/src/components/PDF/TripPDF.tsx b/client/src/components/PDF/TripPDF.tsx
index 4657fbce3..040bb7114 100644
--- a/client/src/components/PDF/TripPDF.tsx
+++ b/client/src/components/PDF/TripPDF.tsx
@@ -101,7 +101,7 @@ async function fetchPlacePhotos(assignments) {
await Promise.allSettled(
toFetch.map(async (place) => {
try {
- const data = await mapsApi.placePhoto(place.google_place_id || place.osm_id)
+ const data = await mapsApi.placePhoto(place.google_place_id || place.osm_id, place.lat, place.lng, place.name)
if (data.photoUrl) photoMap[place.id] = data.photoUrl
} catch {}
})