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(mobile): hint the suggestion fallback the same way the search is hinted

Maurice65eebec53ff7
diff --git a/client/src/mobile/screens/trip/sheets/PlPlaceSearch.tsx b/client/src/mobile/screens/trip/sheets/PlPlaceSearch.tsx
index af52465d9..e6ead9394 100644
--- a/client/src/mobile/screens/trip/sheets/PlPlaceSearch.tsx
+++ b/client/src/mobile/screens/trip/sheets/PlPlaceSearch.tsx
@@ -213,7 +213,7 @@ export default function PlPlaceSearch({ planner, locationBias, onPick, onResolvi
}
if (!place) {
const fullQuery = [suggestion.mainText, suggestion.secondaryText].filter(Boolean).join(', ')
- const search = await mapsApi.search(fullQuery, language)
+ const search = await mapsApi.search(fullQuery, language, pointFromBox(locationBias))
place = (search.places?.[0] as MapsPlace | undefined) ?? null
}
if (place) {