Skip to content

Commit 39ad0d1

Browse files
SIT fix
1 parent 4c9d5bf commit 39ad0d1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

LearningHub.Nhs.WebUI/Views/Catalogue/Index.cshtml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,10 @@
5454
return "Browse";
5555
}
5656
}
57-
58-
if (Model.Catalogue.SelectedCategoryId == 0)
57+
if (Model.Catalogue.SelectedCategoryId == 0 ||
58+
(Model.Catalogue.SelectedCategoryId > 0 &&
59+
(Model.Courses == null || !Model.Courses.Any()) &&
60+
(Model.SubCategories == null || !Model.SubCategories.Any())))
5961
{
6062
ViewBag.ActiveTab = "browse";
6163
}

0 commit comments

Comments
 (0)