diff --git a/client/components/readers/EpubReader.vue b/client/components/readers/EpubReader.vue index 7e0cd2d2..339d73bf 100644 --- a/client/components/readers/EpubReader.vue +++ b/client/components/readers/EpubReader.vue @@ -69,7 +69,7 @@ export default { }, /** @returns {Array} */ chapters() { - return this.book ? this.book.navigation.toc : [] + return this.book?.navigation?.toc || [] }, userMediaProgress() { if (!this.libraryItemId) return diff --git a/client/components/readers/Reader.vue b/client/components/readers/Reader.vue index 333b6e2b..b9d92286 100644 --- a/client/components/readers/Reader.vue +++ b/client/components/readers/Reader.vue @@ -1,5 +1,5 @@