Skip to content

Commit 5796b84

Browse files
Updated predicate to use GetParentAlias()
1 parent 4260503 commit 5796b84

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Umbraco.Web/PropertyEditors/NestedContentController.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
using System.Collections.Generic;
1+
using System.Collections.Generic;
22
using System.Linq;
3+
using Umbraco.Core.Models;
34
using Umbraco.Core.Services;
45
using Umbraco.Web.Editors;
56
using Umbraco.Web.Mvc;
@@ -22,7 +23,7 @@ public IEnumerable<object> GetContentTypes()
2223
name = x.Name,
2324
alias = x.Alias,
2425
icon = x.Icon,
25-
tabs = x.CompositionPropertyGroups.Where(y => y.Type == Core.Models.PropertyGroupType.Group && !y.Alias.Contains("/")).Select(y => y.Name).Distinct()
26+
tabs = x.CompositionPropertyGroups.Where(x => x.Type == PropertyGroupType.Group && x.GetParentAlias() == null).Select(y => y.Name).Distinct()
2627
});
2728
}
2829
}

0 commit comments

Comments
 (0)