fix loading issue

This commit is contained in:
Drew Ansbacher
2021-07-16 12:55:56 -06:00
committed by Aiden McClelland
parent 203eff7758
commit e09d2e7e28
2 changed files with 6 additions and 1 deletions

View File

@@ -59,6 +59,7 @@ export class MarketplaceListPage {
data.categories = data.categories.filter(cat => this.category !== cat)
}
data.categories.unshift(this.category)
data.categories.push('all')
this.eos = eos
} catch (e) {
console.error(e)

View File

@@ -51,7 +51,11 @@ export class MarketplaceShowPage {
this.installedPkg = pkg
}),
]
if (!this.marketplaceService.pkgs[this.pkgId]) {
console.log(this.marketplaceService.pkgs[this.pkgId])
if (this.marketplaceService.pkgs[this.pkgId]) {
this.loading = false
} else {
this.getPkg()
}
}