Fix for getting the right collection.

This commit is contained in:
elitsa
2018-11-05 10:36:17 +01:00
parent b9e30604a4
commit 666a78f803

View File

@@ -29,7 +29,7 @@ namespace Umbraco.Web.Trees
{
var root = base.CreateRootNode(queryStrings);
//check if there are any templates
root.HasChildren = Services.MacroService.GetAll().Any();
root.HasChildren = Services.FileService.GetTemplates(-1).Any();
return root;
}