Recalculate changelog deduplication when the filters change (#954)

This commit is contained in:
Prospector
2023-01-30 16:28:16 -08:00
committed by GitHub
parent e5dc843d6a
commit 0caa56e618
2 changed files with 18 additions and 15 deletions

View File

@@ -98,13 +98,14 @@ export default {
},
data() {
return {
filteredVersions: this.versions,
filteredVersions: this.$calculateDuplicates(this.versions),
currentPage: 1,
}
},
fetch() {
if (this.$route.query.page)
if (this.$route.query.page) {
this.currentPage = parseInt(this.$route.query.page)
}
},
head() {
const title = `${this.project.title} - Changelog`
@@ -154,7 +155,7 @@ export default {
}
},
updateVersions(updatedVersions) {
this.filteredVersions = updatedVersions
this.filteredVersions = this.$calculateDuplicates(updatedVersions)
},
},
auth: false,