Make sure we only show one parent on the requests page

This commit is contained in:
Jamie Rees 2019-03-29 14:43:40 +00:00
parent da9a892e43
commit 283be5d22f

View file

@ -264,6 +264,8 @@ namespace Ombi.Core.Engine
: allRequests.OrderByDescending(x => prop.GetValue(x)).ToList();
allRequests.ForEach(async r => { await CheckForSubscription(shouldHide, r); });
// Make sure we do not show duplicate child requests
allRequests = allRequests.DistinctBy(x => x.ParentRequest.Title).ToList();
return new RequestsViewModel<ChildRequests>
{