Fixed erronous clearing of value-fields in tagmappings, (hopefully) fixes #131

This commit is contained in:
Pieter Vander Vennet 2020-09-27 20:51:37 +02:00
parent 6509358f84
commit c53ccb7bae
6 changed files with 20 additions and 7 deletions

View file

@ -17,7 +17,16 @@ export default class Combine extends UIElement {
}
InnerRender(): string {
return this.uiElements.map(ui => ui.Render()).join("");
return this.uiElements.map(ui => {
if(ui === undefined || ui === null){
return "";
}
if(ui.Render === undefined){
console.error("Not a UI-element", ui);
return "";
}
return ui.Render();
}).join("");
}
}