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, },