From a8bc1df3e7da55ecfa84e6b3fb94183abad7275f Mon Sep 17 00:00:00 2001 From: advplyr Date: Sun, 18 Jun 2023 12:56:32 -0500 Subject: [PATCH] Fix epub ereader theme sticking for other ebook formats --- client/components/readers/EpubReader.vue | 2 +- client/components/readers/Reader.vue | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) 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 @@