diff --git a/LearningHub.Nhs.WebUI/Views/Catalogue/Index.cshtml b/LearningHub.Nhs.WebUI/Views/Catalogue/Index.cshtml index 5ee848a5..1a18a2d7 100644 --- a/LearningHub.Nhs.WebUI/Views/Catalogue/Index.cshtml +++ b/LearningHub.Nhs.WebUI/Views/Catalogue/Index.cshtml @@ -54,8 +54,10 @@ return "Browse"; } } - - if (Model.Catalogue.SelectedCategoryId == 0) + if (Model.Catalogue.SelectedCategoryId == 0 || + (Model.Catalogue.SelectedCategoryId > 0 && + (Model.Courses == null || !Model.Courses.Any()) && + (Model.SubCategories == null || !Model.SubCategories.Any()))) { ViewBag.ActiveTab = "browse"; }