From 27416efb6df06c44e22ccf668a6ccc01f80e969c Mon Sep 17 00:00:00 2001 From: Lucy Cifferello <12953208+elvece@users.noreply.github.com> Date: Thu, 12 Sep 2024 11:55:54 -0400 Subject: [PATCH] only display alt implementations if no flavors --- .../marketplace-show/marketplace-show.page.ts | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/web/projects/ui/src/app/pages/marketplace-routes/marketplace-show/marketplace-show.page.ts b/web/projects/ui/src/app/pages/marketplace-routes/marketplace-show/marketplace-show.page.ts index 018ddbb64..d2af27efc 100644 --- a/web/projects/ui/src/app/pages/marketplace-routes/marketplace-show/marketplace-show.page.ts +++ b/web/projects/ui/src/app/pages/marketplace-routes/marketplace-show/marketplace-show.page.ts @@ -51,15 +51,14 @@ export class MarketplaceShowPage { readonly flavors$ = this.route.queryParamMap.pipe( switchMap(paramMap => - this.marketplaceService - .getSelectedStore$() - .pipe( - map(s => - s.packages.filter( - p => p.id === this.pkgId && p.flavor !== paramMap.get('flavor'), - ), + this.marketplaceService.getSelectedStore$().pipe( + map(s => + s.packages.filter( + p => p.id === this.pkgId && p.flavor !== paramMap.get('flavor'), ), ), + filter(p => p.length > 0), + ), ), )