You've already forked AstralRinth
forked from didirus/AstralRinth
Fix sorting on version filtering (#389)
This commit is contained in:
@@ -65,14 +65,13 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
getValidVersions() {
|
getValidVersions() {
|
||||||
if (!this.cachedValidVersions) {
|
if (!this.cachedValidVersions) {
|
||||||
const temp = new Set()
|
this.cachedValidVersions = this.$tag.gameVersions
|
||||||
for (const version of this.versions) {
|
.map((x) => x.version)
|
||||||
version.game_versions.forEach((v) => {
|
.filter((gameVer) =>
|
||||||
temp.add(v)
|
this.versions.some((projVer) =>
|
||||||
})
|
projVer.game_versions.includes(gameVer)
|
||||||
}
|
)
|
||||||
this.cachedValidVersions = Array.from(temp)
|
)
|
||||||
this.cachedValidVersions.sort().reverse()
|
|
||||||
}
|
}
|
||||||
return this.cachedValidVersions
|
return this.cachedValidVersions
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user