recalculate updates bad on pkg uninstall

This commit is contained in:
Matt Hill
2023-03-20 14:42:57 -06:00
committed by Aiden McClelland
parent 99019c2b1f
commit 3933819d53

View File

@@ -74,11 +74,10 @@ export class MenuComponent {
this.patch.watch$('package-data').pipe(
pairwise(),
filter(([prev, curr]) =>
Object.values(prev).some(
p =>
p['install-progress'] &&
!curr[p.manifest.id]?.['install-progress'],
),
Object.values(prev).some(p => {
const c = curr[p.manifest.id]
return !c || (p['install-progress'] && !c['install-progress'])
}),
),
map(([_, curr]) => curr),
startWith(outer),