From e7ef2bc91d5cf0e847567a22bc6ca1cab2aa30a9 Mon Sep 17 00:00:00 2001 From: Gauthier Roebroeck Date: Wed, 2 Oct 2024 10:06:18 +0800 Subject: [PATCH] fix(webui): epub reader crash when reading one-shot from collection context Closes: #1718 --- komga-webui/src/views/EpubReader.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/komga-webui/src/views/EpubReader.vue b/komga-webui/src/views/EpubReader.vue index 636403df9..1f755d183 100644 --- a/komga-webui/src/views/EpubReader.vue +++ b/komga-webui/src/views/EpubReader.vue @@ -710,8 +710,10 @@ export default Vue.extend({ id: this.$route.query.contextId as string, } this.book.context = this.context - this.contextName = (await (this.$komgaReadLists.getOneReadList(this.context.id))).name - document.title = `Komga - ${this.contextName} - ${this.book.metadata.title}` + if (this?.context.origin === ContextOrigin.READLIST) { + this.contextName = (await (this.$komgaReadLists.getOneReadList(this.context.id))).name + document.title = `Komga - ${this.contextName} - ${this.book.metadata.title}` + } } else { document.title = `Komga - ${getBookTitleCompact(this.book.metadata.title, this.series.metadata.title)}` }