Skip to content

Commit

Permalink
label not required
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
  • Loading branch information
mherwege committed Oct 21, 2023
1 parent a0ca197 commit 05df117
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@
* @author Laurent Garnier - icon color support for all widgets
* @author Laurent Garnier - Added support for new element Buttongrid
* @author Laurent Garnier - Added icon field for mappings
* @author Mark Herwege - Make UI provided sitemaps compatible with enhanced syntax, no full UI support for enhanced
* syntax
* @author Mark Herwege - Make UI provided sitemaps compatible with enhanced syntax in conditions
*/
@NonNullByDefault
@Component(service = SitemapProvider.class)
Expand Down Expand Up @@ -162,10 +161,9 @@ protected Sitemap buildSitemap(RootUIComponent rootComponent) {
SitemapImpl sitemap = (SitemapImpl) SitemapFactory.eINSTANCE.createSitemap();
sitemap.setName(SITEMAP_PREFIX + rootComponent.getUID());
Object label = rootComponent.getConfig().get("label");
if (label == null) {
return sitemap;
if (label != null) {
sitemap.setLabel(label.toString());
}
sitemap.setLabel(label.toString());

if (rootComponent.getSlots() != null && rootComponent.getSlots().containsKey("widgets")) {
for (UIComponent component : rootComponent.getSlot("widgets")) {
Expand Down

0 comments on commit 05df117

Please sign in to comment.