fix(webui): webreader crash when reading one-shot from collection context

Closes: #1374
This commit is contained in:
Gauthier Roebroeck 2024-01-08 11:19:26 +08:00
parent 8c4a5e316c
commit bdf9ec9c6e

View file

@ -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 {