Skip to content

Commit

Permalink
fix: Location search component does not list geocoder results (closes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
claustres committed Jun 6, 2024
1 parent c101664 commit 2cd885f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion map/client/utils/utils.location.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ export async function queryGeocoder(planetConfig, path, query = '') {
const jwt = await api.get('storage').getItem(planetConfig.gatewayJwt)
let url = `${endpoint}/${path}`
if (query) url += `?${query}`
const results = await fetch(url, { headers: { Authorization: `Bearer ${jwt}` } }).then((response) => response.json())
const response = await fetch(url, { headers: { Authorization: `Bearer ${jwt}` } })
const results = await response.json()
return results
}

Expand Down

0 comments on commit 2cd885f

Please sign in to comment.