Work on automatically creating an import layer for every feature

This commit is contained in:
Pieter Vander Vennet 2022-01-14 13:58:37 +01:00
parent f67d0701b0
commit a65afbbb58
13 changed files with 165 additions and 8 deletions

View file

@ -262,7 +262,7 @@ In the case that MapComplete is pointed to the testing grounds, the edit will be
const date: Date = el;
v = date.toISOString()
}
if (useLang !== undefined && v?.translations !== undefined) {
v = v.translations[useLang] ?? v.translations["*"] ?? (v.textFor !== undefined ? v.textFor(useLang) : v);
}