mirror of
https://github.com/gotson/komga.git
synced 2025-12-26 02:15:40 +01:00
fix(webui): epub reader crash when reading one-shot from collection context
Closes: #1718
This commit is contained in:
parent
fa006c0428
commit
e7ef2bc91d
1 changed files with 4 additions and 2 deletions
|
|
@ -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)}`
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue