mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-12 16:52:50 +00:00
deduplicate postcode suggestions (#10847)
This commit is contained in:
@@ -114,9 +114,10 @@ export function uiFieldAddress(field, context) {
|
||||
}
|
||||
|
||||
function getNearPostcodes() {
|
||||
return [... new Set([]
|
||||
const postcodes = []
|
||||
.concat(getNearValues('postcode'))
|
||||
.concat(getNear(d => d.tags.postal_code, 'postcode', 200, 'postal_code')))];
|
||||
.concat(getNear(d => d.tags.postal_code, 'postcode', 200, 'postal_code'));
|
||||
return utilArrayUniqBy(postcodes, item => item.value);
|
||||
}
|
||||
|
||||
function getNearValues(key) {
|
||||
|
||||
Reference in New Issue
Block a user