mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-06-19 13:21:46 +00:00
refactor(places): merge KML/KMZ routes into single POST /import/map endpoint
This commit is contained in:
@@ -111,9 +111,7 @@ const PlacesSidebar = React.memo(function PlacesSidebar({
|
||||
setKmlKmzSummary(null)
|
||||
|
||||
try {
|
||||
const result = ext === 'kmz'
|
||||
? await placesApi.importKmz(tripId, kmlKmzFile)
|
||||
: await placesApi.importKml(tripId, kmlKmzFile)
|
||||
const result = await placesApi.importMapFile(tripId, kmlKmzFile)
|
||||
|
||||
await loadTrip(tripId)
|
||||
setKmlKmzSummary(result.summary || null)
|
||||
|
||||
Reference in New Issue
Block a user