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,15 +51,14 @@ 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$() map(s =>
.pipe( s.packages.filter(
map(s => p => p.id === this.pkgId && p.flavor !== paramMap.get('flavor'),
s.packages.filter(
p => p.id === this.pkgId && p.flavor !== paramMap.get('flavor'),
),
), ),
), ),
filter(p => p.length > 0),
),
), ),
) )