I'm publishing a web app through WAB 2.13. The group layer list has been customized so one can set sub groups in the GroupLayerList.config file. This has caused errors in some of the widgets e.g. the Share widget that struggled to read the sub groups. I managed to fix this but can't get the Legend widget to work.
At first it hanged when I try to configure it. Managed to make some adjustments and got it to open the list of available layers but it still shows all layers in the map legend, not just the ones that I want and are ticked to show. Does anyone have some advice on how to solve this?