Skip to content

Commit

Permalink
Bug fix (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasBleijendaal authored Jan 1, 2022
1 parent 123613d commit 94e4b0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/RapidCMS.Example.Github/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ public static async Task Main(string[] args)
collection.AddSelfAsRecursiveCollection();
});

config.AddCollection<ConventionPerson, LocalStorageRepository<ConventionPerson>>("recursive-person-view", "UserSync", "YellowGreen10", "Recursive Person - By Convention (read-only)", collection =>
config.AddCollection<ConventionPerson, LocalStorageRepository<ConventionPerson>>("recursive-person-view", "UserSync", "YellowGreen10", "Recursive Person (read-only)", collection =>
{
collection
.SetTreeView(x => x.Name)
Expand Down
2 changes: 1 addition & 1 deletion src/RapidCMS.Core/Resolvers/UI/BaseUIResolver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ protected internal async Task<SectionUI> GetSectionUIAsync(IPaneSetup pane, Form
var nestedState = new NavigationState(
subCollection.CollectionAlias,
parentPath,
subCollection.SupportsUsageType.FindSupportedUsageType(editContext.UsageType) | UsageType.View | UsageType.List);
subCollection.SupportsUsageType.FindSupportedUsageType(editContext.UsageType) | UsageType.List);

_navigationStateProvider.NestNavigationState(navigationState, nestedState);

Expand Down

0 comments on commit 94e4b0d

Please sign in to comment.