Merge branch 'integration/0.3.0' of github.com:Start9Labs/embassy-os into integration/0.3.0

This commit is contained in:
Matt Hill
2021-09-30 12:36:38 -06:00

View File

@@ -96,7 +96,9 @@ export class MarketplaceListPage {
} }
async search (): Promise<void> { async search (): Promise<void> {
this.category = undefined if (this.query) {
this.category = undefined
}
await this.filterPkgs() await this.filterPkgs()
} }
@@ -140,7 +142,7 @@ export class MarketplaceListPage {
} }
const fuse = new Fuse(pkgsToSort, { ...defaultOps, threshold: 1 }) const fuse = new Fuse(pkgsToSort, { ...defaultOps, threshold: 1 })
this.pkgs = fuse.search(this.category !== 'all' ? this.category : 'bit').map(p => p.item) this.pkgs = fuse.search(this.category !== 'all' ? this.category || '' : 'bit').map(p => p.item)
} }
} }
} }