#3419 added check on tree items count back

This commit is contained in:
Dave Woestenborghs
2018-10-24 18:28:52 +02:00
parent 96c0b701a0
commit d5cc658811

View File

@@ -41,7 +41,7 @@ namespace Umbraco.Web.Trees
var groupedTrees = Services.ApplicationTreeService.GetGroupedApplicationTrees(application, onlyInitialized);
var allTrees = groupedTrees.Values.SelectMany(x => x).ToList();
if (string.IsNullOrEmpty(tree) == false)
if (string.IsNullOrEmpty(tree) == false || allTrees.Count <= 1)
{
var apptree = !tree.IsNullOrWhiteSpace()
? allTrees.FirstOrDefault(x => x.Alias == tree)