Fix build

This commit is contained in:
Pieter Vander Vennet 2024-05-27 10:21:34 +02:00
parent 12a200c54d
commit e28f4aeaf7
5 changed files with 35 additions and 63 deletions

View file

@ -523,7 +523,7 @@ In the case that MapComplete is pointed to the testing grounds, the edit will be
v =
v.translations[useLang] ??
v.translations["*"] ??
(v.textFor !== undefined ? v.textFor(useLang) : v)
(v?.textFor(useLang) ?? v)
}
if (v.InnerConstructElement !== undefined) {