There is 1 comment.
 
 
Cristal / cid:jira-generated-image-avatar-ce701dff-375c-40d7-9b6f-9c0acba8ecb9 CRISTAL-236 Open

Navigation tree with no child sometimes have an expand button

 
View issue   ยท   Add comment
 

1 comment

 
cid:jira-generated-image-avatar-ace4099a-c998-4306-8c76-6072b1e49ad3 Pierre Jeanjean on 28/Nov/24 17:12
 
For XWiki, fixing [this TODO|https://github.com/xwiki-contrib/cristal/blob/ main d69978c71583a8bcb461447913404362d1e7f9d4 /core/navigation-tree/navigation-tree-xwiki/src/components/componentsInit.ts# L98 L162 ] should be enough. The issue exists with the other backends as well and will probably require checking manually if children exist (which is not hard to do through `NavigationTreeSource.getChildNodes()`, but possibly expensive).