fix icons and flavor filtering

This commit is contained in:
Lucy Cifferello
2024-09-12 17:48:57 -04:00
parent b6c48d0f98
commit 751ceab04e
13 changed files with 45 additions and 114 deletions

View File

@@ -31,11 +31,9 @@ import {
BehaviorSubject,
combineLatest,
filter,
firstValueFrom,
map,
startWith,
switchMap,
tap,
} from 'rxjs'
@Component({
@@ -204,15 +202,14 @@ export class MarketplacePreviewComponent {
readonly flavors$ = this.flavor$.pipe(
switchMap(current =>
this.marketplaceService
.getSelectedStore$()
.pipe(
map(({ packages }) =>
packages.filter(
({ id, flavor }) => id === this.pkgId && flavor !== current,
),
this.marketplaceService.getSelectedStore$().pipe(
map(({ packages }) =>
packages.filter(
({ id, flavor }) => id === this.pkgId && flavor !== current,
),
),
filter(p => p.length > 0),
),
),
)