only display alt implementations if no flavors

This commit is contained in:
Lucy Cifferello
2024-09-12 11:55:54 -04:00
parent 21dd08544b
commit 27416efb6d

View File

@@ -51,14 +51,13 @@ export class MarketplaceShowPage {
readonly flavors$ = this.route.queryParamMap.pipe( readonly flavors$ = this.route.queryParamMap.pipe(
switchMap(paramMap => switchMap(paramMap =>
this.marketplaceService this.marketplaceService.getSelectedStore$().pipe(
.getSelectedStore$()
.pipe(
map(s => map(s =>
s.packages.filter( s.packages.filter(
p => p.id === this.pkgId && p.flavor !== paramMap.get('flavor'), p => p.id === this.pkgId && p.flavor !== paramMap.get('flavor'),
), ),
), ),
filter(p => p.length > 0),
), ),
), ),
) )