mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-16 02:02:55 -07:00
Make sure we only show one parent on the requests page
This commit is contained in:
parent
da9a892e43
commit
283be5d22f
1 changed files with 2 additions and 0 deletions
|
@ -264,6 +264,8 @@ namespace Ombi.Core.Engine
|
||||||
: allRequests.OrderByDescending(x => prop.GetValue(x)).ToList();
|
: allRequests.OrderByDescending(x => prop.GetValue(x)).ToList();
|
||||||
allRequests.ForEach(async r => { await CheckForSubscription(shouldHide, r); });
|
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>
|
return new RequestsViewModel<ChildRequests>
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue