Fix for #14565 - Empty DocType folders hidden (#14581)

This commit is contained in:
Rasmus Söderström
2023-07-20 13:36:29 +02:00
committed by Bjarke Berg
parent 0046f1a9f8
commit 7d253d3454

View File

@@ -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;