update patch types for current dependencies

This commit is contained in:
Matt Hill
2024-03-27 10:25:07 -06:00
parent f9edff8bf4
commit 22d8d08355
10 changed files with 52 additions and 68 deletions

View File

@@ -44,8 +44,8 @@ export class UpdatesPage {
marketplace: this.marketplaceService.getMarketplace$(),
localPkgs: this.patch.watch$('packageData').pipe(
map(pkgs =>
Object.values(pkgs).reduce((acc, curr) => {
if (isInstalled(curr) || isUpdating(curr)) return { ...acc, curr }
Object.entries(pkgs).reduce((acc, [id, val]) => {
if (isInstalled(val) || isUpdating(val)) return { ...acc, [id]: val }
return acc
}, {} as Record<string, PackageDataEntry<InstalledState | UpdatingState>>),
),