Fetch course for CSR

This commit is contained in:
rotimi-best
2021-08-21 13:26:43 +03:00
parent 288b342abe
commit 07e8b3a5cb
4 changed files with 48 additions and 27 deletions
@@ -80,6 +80,12 @@
afterUpdate(setLesson);
$: path = $page.path.replace(/\/exercises[\/ 0-9 a-z -]*/, '');
$: {
if (lessonId) {
mode = MODES.view;
}
}
</script>
<CourseContainer {path} isExercisePage={!isMaterialsTabActive && exerciseId}>