More refactoring and fixes

This commit is contained in:
Pieter Vander Vennet 2021-06-14 02:39:23 +02:00
parent d7004cd3dc
commit 9cc721abad
37 changed files with 519 additions and 632 deletions

View file

@ -24,10 +24,17 @@ export class VariableUiElement extends BaseUIElement {
el.innerHTML = contents
} else if (contents instanceof Array) {
for (const content of contents) {
el.appendChild(content.ConstructElement())
const c = content.ConstructElement();
if (c !== undefined && c !== null) {
el.appendChild(c)
}
}
} else {
const c = contents.ConstructElement();
if (c !== undefined && c !== null) {
el.appendChild(c)
}
}else{
el.appendChild(contents.ConstructElement())
}
})
}