We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c9d5bf commit 39ad0d1Copy full SHA for 39ad0d1
LearningHub.Nhs.WebUI/Views/Catalogue/Index.cshtml
@@ -54,8 +54,10 @@
54
return "Browse";
55
}
56
57
-
58
- if (Model.Catalogue.SelectedCategoryId == 0)
+ if (Model.Catalogue.SelectedCategoryId == 0 ||
+ (Model.Catalogue.SelectedCategoryId > 0 &&
59
+ (Model.Courses == null || !Model.Courses.Any()) &&
60
+ (Model.SubCategories == null || !Model.SubCategories.Any())))
61
{
62
ViewBag.ActiveTab = "browse";
63
0 commit comments