diff --git a/src/addons/mod/book/pages/contents/contents.ts b/src/addons/mod/book/pages/contents/contents.ts index 1f8ebb2b9..865279a06 100644 --- a/src/addons/mod/book/pages/contents/contents.ts +++ b/src/addons/mod/book/pages/contents/contents.ts @@ -253,7 +253,7 @@ export class AddonModBookContentsPage implements OnInit, OnDestroy { componentProps: { moduleId: this.cmId, chapters: this.chapters, - selected: visibleChapter, + selected: visibleChapter?.id, courseId: this.courseId, book: this.book, }, diff --git a/src/addons/mod/lesson/components/index/addon-mod-lesson-index.html b/src/addons/mod/lesson/components/index/addon-mod-lesson-index.html index d039f0303..a02bbbc11 100644 --- a/src/addons/mod/lesson/components/index/addon-mod-lesson-index.html +++ b/src/addons/mod/lesson/components/index/addon-mod-lesson-index.html @@ -7,16 +7,16 @@ + + + + + - - - - -