From 3466997a9bdd720cb180e61b2e6a296d47be4388 Mon Sep 17 00:00:00 2001 From: Mikal Stordal Date: Sat, 7 Oct 2023 00:03:11 +0200 Subject: [PATCH] fix: fix get sub-groups --- Shoko.Server/API/v3/Controllers/TreeController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shoko.Server/API/v3/Controllers/TreeController.cs b/Shoko.Server/API/v3/Controllers/TreeController.cs index f89fddb52..69446b529 100644 --- a/Shoko.Server/API/v3/Controllers/TreeController.cs +++ b/Shoko.Server/API/v3/Controllers/TreeController.cs @@ -455,7 +455,7 @@ public ActionResult> GetSubGroups([FromRoute] int groupID, [FromQuer return false; } - return includeEmpty || group.GetAllSeries() + return includeEmpty || subGroup.GetAllSeries() .Any(s => s.GetAnimeEpisodes().Any(e => e.GetVideoLocals().Count > 0)); }) .OrderBy(group => group.GroupName)