Make sure we only show one parent on the requests page

pull/3895/head
Jamie Rees 6 years ago
parent da9a892e43
commit 283be5d22f

@ -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>
{

Loading…
Cancel
Save