mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-19 23:14:47 +02:00
fix bug in "lang=badvalue" handling for wikidata api
see https://github.com/openstreetmap/iD/pull/9638#issuecomment-1623497481
This commit is contained in:
@@ -146,7 +146,10 @@ export function uiFieldWikidata(field, context) {
|
||||
}
|
||||
|
||||
wikidata.itemsForSearchQuery(q, function(err, data) {
|
||||
if (err) return;
|
||||
if (err) {
|
||||
if (err !== 'No query') console.error(err);
|
||||
return;
|
||||
}
|
||||
|
||||
var result = data.map(function (item) {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user