This commit is contained in:
Drew Ansbacher
2021-07-16 13:05:28 -06:00
committed by Aiden McClelland
parent 0675bb2e09
commit b9518fbf36

View File

@@ -54,12 +54,12 @@ export class MarketplaceListPage {
]) ])
this.eos = eos this.eos = eos
this.data = data this.data = data
this.data.categories.unshift('updates')
if (data.categories.includes(this.category)) { // category should start as first item in array
data.categories = data.categories.filter(cat => this.category !== cat) // remove here then add at beginning
} const filterdCategories = this.data.categories.filter(cat => this.category !== cat)
data.categories.unshift(this.category) this.data.categories = [this.category, 'updates'].concat(filterdCategories).concat(['all'])
data.categories.push('all')
} catch (e) { } catch (e) {
console.error(e) console.error(e)
this.errToast.present(e.message) this.errToast.present(e.message)