From bdf9ec9c6e9fcd06c92de4b865e68d5d3cfee4fa Mon Sep 17 00:00:00 2001 From: Gauthier Roebroeck Date: Mon, 8 Jan 2024 11:19:26 +0800 Subject: [PATCH] fix(webui): webreader crash when reading one-shot from collection context Closes: #1374 --- komga-webui/src/views/DivinaReader.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/komga-webui/src/views/DivinaReader.vue b/komga-webui/src/views/DivinaReader.vue index efea372c..2a66325a 100644 --- a/komga-webui/src/views/DivinaReader.vue +++ b/komga-webui/src/views/DivinaReader.vue @@ -667,6 +667,9 @@ export default Vue.extend({ id: this.$route.query.contextId as string, } this.book.context = this.context + } + + 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 {