forked from MapComplete/MapComplete
Theme(trees): fix crash on specific trees due to missing "mul"-translation, fix #2380
This commit is contained in:
parent
85c2b4c364
commit
3ae49d99c2
1 changed files with 4 additions and 2 deletions
|
@ -439,8 +439,10 @@ export default class Wikidata {
|
|||
}
|
||||
|
||||
const resp: WikidataResponse = WikidataResponse.fromJson(response)
|
||||
// 'mul' is the fallback language for wikidata, see https://source.mapcomplete.org/MapComplete/MapComplete/issues/2346
|
||||
resp.labels.set("*", resp.labels.get("mul"))
|
||||
if (resp.labels.has("mul")) {
|
||||
// 'mul' is the fallback language for wikidata, see https://source.mapcomplete.org/MapComplete/MapComplete/issues/2346
|
||||
resp.labels.set("*", resp.labels.get("mul"))
|
||||
}
|
||||
return resp
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue