[F] Fix problem where the ratings are not loading when a course details page is opened after another

This commit is contained in:
Hykilpikonna
2020-04-29 11:37:26 -04:00
parent cde51445a1
commit 2e57869c5f
@@ -71,7 +71,17 @@
get ratingCriteria() {return RATING_CRITERIA}
get rating() {return this.detailsCourse.rating}
created()
mounted()
{
this.checkRatings()
}
updated()
{
this.checkRatings()
}
checkRatings()
{
// Load ratings
this.sortedCourses.forEach(c =>