Various small bug fixes

This commit is contained in:
Pieter Vander Vennet 2021-10-15 15:20:08 +02:00
commit 5ac035be20
5 changed files with 31 additions and 18 deletions

View file

@ -559,9 +559,15 @@ export default class LayerConfig {
}
if (iconOverlay.badge) {
const badgeParts: BaseUIElement[] = [];
const partDefs = iconOverlay.then
const renderValue = iconOverlay
.then
.GetRenderValue(tgs)
.txt.split(";")
if(renderValue === undefined){
continue;
}
const partDefs = renderValue.txt.split(";")
.filter((prt) => prt != "");
for (const badgePartStr of partDefs) {