diff --git a/client/components/readers/EpubReader.vue b/client/components/readers/EpubReader.vue index 7e0cd2d2b..339d73bfc 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 333b6e2bb..b9d92286e 100644 --- a/client/components/readers/Reader.vue +++ b/client/components/readers/Reader.vue @@ -1,5 +1,5 @@