fix(webui): import details dialog not updated correctly

if a matching book was found before, then removed, the dialog would still display that book's pages
This commit is contained in:
Gauthier Roebroeck 2021-05-11 17:41:43 +08:00
parent ca7cf7de90
commit 33cb0836ba

View file

@ -250,6 +250,7 @@ export default Vue.extend({
async checkForUpgrade(number: number | undefined) {
this.bookToUpgrade = this.seriesBooks.find(b => b.metadata.numberSort === number)
if (this.bookToUpgrade) this.bookToUpgradePages = await this.$komgaBooks.getBookPages(this.bookToUpgrade.id)
else this.bookToUpgradePages = []
},
},
})