From 2e57869c5f4917d6b08c99122dc8fcf13e567c78 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Wed, 29 Apr 2020 11:37:26 -0400 Subject: [PATCH] [F] Fix problem where the ratings are not loading when a course details page is opened after another --- src/pages/course-selection/pages/course-detail.vue | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/pages/course-selection/pages/course-detail.vue b/src/pages/course-selection/pages/course-detail.vue index b98fb66..98a2b71 100644 --- a/src/pages/course-selection/pages/course-detail.vue +++ b/src/pages/course-selection/pages/course-detail.vue @@ -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 =>