Skip to content

Commit

Permalink
fix(webui): webreader crash when reading one-shot from collection con…
Browse files Browse the repository at this point in the history
…text

Closes: #1374
  • Loading branch information
gotson committed Jan 8, 2024
1 parent 8c4a5e3 commit bdf9ec9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions komga-webui/src/views/DivinaReader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit bdf9ec9

Please sign in to comment.