Fix sorting
This commit is contained in:
parent
29d2b942e8
commit
8df8bf33a4
@ -335,7 +335,6 @@ export default {
|
|||||||
if (this.$route.query.o)
|
if (this.$route.query.o)
|
||||||
this.currentPage = Math.ceil(this.$route.query.o / this.maxResults) + 1
|
this.currentPage = Math.ceil(this.$route.query.o / this.maxResults) + 1
|
||||||
|
|
||||||
this.facets.push('host:modrinth')
|
|
||||||
await this.fillInitialVersions()
|
await this.fillInitialVersions()
|
||||||
await this.onSearchChange(this.currentPage)
|
await this.onSearchChange(this.currentPage)
|
||||||
},
|
},
|
||||||
@ -389,7 +388,6 @@ export default {
|
|||||||
for (const facet of [...this.facets]) await this.toggleFacet(facet, true)
|
for (const facet of [...this.facets]) await this.toggleFacet(facet, true)
|
||||||
|
|
||||||
this.selectedVersions = []
|
this.selectedVersions = []
|
||||||
this.facets.push('host:modrinth')
|
|
||||||
await this.onSearchChange(1)
|
await this.onSearchChange(1)
|
||||||
},
|
},
|
||||||
async toggleFacet(elementName, sendRequest) {
|
async toggleFacet(elementName, sendRequest) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user