Skip to content

Commit c317da6

Browse files
Merge pull request #1522 from TechnologyEnhancedLearning/Develop/Fixes/TD-6429-LMS-Error-Occurring-in-Test-Environment-While-Launching-SCORM-Content
SIT fix
2 parents 9cbc0c1 + 39ad0d1 commit c317da6

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)