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(share): the day line on the shared map asks for a picked day as a boolean

Maurice6f61b66c5c7c
diff --git a/client/src/pages/sharedTrip/SharedMap.tsx b/client/src/pages/sharedTrip/SharedMap.tsx
index 945142bb1..3ed817267 100644
--- a/client/src/pages/sharedTrip/SharedMap.tsx
+++ b/client/src/pages/sharedTrip/SharedMap.tsx
@@ -123,7 +123,7 @@ export function SharedMap({ places, line, orderByPlace, cartoApiKey, days, selec
<TileLayer url={basemap.url} attribution={attributionForTile(basemap.url)} referrerPolicy="strict-origin-when-cross-origin" />
)}
<FitBoundsToPlaces places={places} framedOnMount={framed !== null} />
- {selectedDay && line.length > 1 && (
+ {selectedDay != null && line.length > 1 && (
<Polyline
positions={line.map(p => [p.lat, p.lng])}
// Dashed and straight on purpose: it shows the order of the day's stops,