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)