From 475cdae19fda536e2498d684cc6defc9b569c6cf Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Wed, 21 Apr 2021 17:43:04 +0200 Subject: [PATCH] Do not show layer selection if the layer name is undefined or empty string --- UI/BigComponents/LayerSelection.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UI/BigComponents/LayerSelection.ts b/UI/BigComponents/LayerSelection.ts index fe55f1c..0b75a3a 100644 --- a/UI/BigComponents/LayerSelection.ts +++ b/UI/BigComponents/LayerSelection.ts @@ -50,7 +50,7 @@ export default class LayerSelection extends UIElement { const name = Translations.WT(layer.layerDef.name)?.Clone() ?.SetStyle("font-size:large;margin-left: 0.5em;"); - if(name === undefined){ + if((name ?? "") === ""){ continue }