forked from MapComplete/MapComplete
Small fix: themes still load if no description is given
This commit is contained in:
parent
5d74115cde
commit
f86e8ea191
2 changed files with 12 additions and 4 deletions
|
@ -18,6 +18,9 @@ export class Translation extends UIElement {
|
|||
}
|
||||
let count = 0;
|
||||
for (const translationsKey in translations) {
|
||||
if(!translations.hasOwnProperty(translationsKey)){
|
||||
continue
|
||||
}
|
||||
count++;
|
||||
if (typeof (translations[translationsKey]) != "string") {
|
||||
console.error("Non-string object in translation: ", translations[translationsKey])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue