bug fix and readme revert

This commit is contained in:
Drew Ansbacher
2021-11-30 13:32:30 -07:00
committed by Aiden McClelland
parent 8b28ad2ca5
commit 91cf6f9a5d
2 changed files with 2 additions and 11 deletions

View File

@@ -69,7 +69,7 @@ export class AppListPage {
private watchNewlyRecovered (): Observable<unknown> {
return this.patch.watch$('package-data').pipe(
filter((pkgs) => Object.keys(pkgs).length !== this.pkgs.length),
filter((pkgs) => !!pkgs && Object.keys(pkgs).length !== this.pkgs.length),
tap((pkgs) => {
const ids = Object.keys(pkgs)
const newIds = ids.filter(
@@ -85,7 +85,7 @@ export class AppListPage {
const added = newIds.map((id) => pkgs[id])
this.pkgs = [...added, ...filtered]
this.recoveredPkgs.filter((rec) => !pkgs[rec.id])
this.recoveredPkgs = this.recoveredPkgs.filter((rec) => !pkgs[rec.id])
}),
)
}