Do not show layer selection if the layer name is undefined or empty string

This commit is contained in:
pietervdvn 2021-04-21 17:43:04 +02:00
parent 8cc061c68f
commit 475cdae19f

View file

@ -50,7 +50,7 @@ export default class LayerSelection extends UIElement {
const name = Translations.WT(layer.layerDef.name)?.Clone() const name = Translations.WT(layer.layerDef.name)?.Clone()
?.SetStyle("font-size:large;margin-left: 0.5em;"); ?.SetStyle("font-size:large;margin-left: 0.5em;");
if(name === undefined){ if((name ?? "") === ""){
continue continue
} }