Skip to content

Commit

Permalink
fix bug in getting nearby postcodes
Browse files Browse the repository at this point in the history
  • Loading branch information
tyrasd committed Apr 28, 2023
1 parent 316b819 commit aca88bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/ui/fields/address.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ export function uiFieldAddress(field, context) {

function getNearPostcodes() {
return [... new Set([]
.concat(getNearValues('postcode')))
.concat(getNear(d => d.tags.postal_code, 'postcode', 200, 'postal_code'))];
.concat(getNearValues('postcode'))
.concat(getNear(d => d.tags.postal_code, 'postcode', 200, 'postal_code')))];
}

function getNearValues(key) {
Expand Down

0 comments on commit aca88bf

Please sign in to comment.