committed by
Bjarke Berg
parent
0046f1a9f8
commit
7d253d3454
@@ -63,8 +63,8 @@ public class ContentTypeTreeController : TreeController, ISearchableTree
|
||||
|
||||
if (root is not null)
|
||||
{
|
||||
//check if there are any types
|
||||
root.HasChildren = _contentTypeService.GetAll().Any();
|
||||
// check if there are any types or containers
|
||||
root.HasChildren = _contentTypeService.GetAll().Any() || _contentTypeService.GetContainers(Array.Empty<int>()).Any();
|
||||
}
|
||||
|
||||
return root;
|
||||
|
||||
Reference in New Issue
Block a user