From 91cf6f9a5d46fd57ea5728418726c794b1eaba12 Mon Sep 17 00:00:00 2001 From: Drew Ansbacher Date: Tue, 30 Nov 2021 13:32:30 -0700 Subject: [PATCH] bug fix and readme revert --- ui/README.md | 9 --------- ui/src/app/pages/apps-routes/app-list/app-list.page.ts | 4 ++-- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/ui/README.md b/ui/README.md index cacba5644..979c820ef 100644 --- a/ui/README.md +++ b/ui/README.md @@ -22,15 +22,6 @@ v8.0.0 `cargo run -- -vvv -c example-config.toml` -*Note:* If you have "SSL connect error" on Window while running cargo -command create a file `config` in `C:\Users\%username%\.cargo` -and add following lines there: - -``` -[http] -check-revoke = false -``` - ### Building Embassy UI **In a new terminal window, from `embassy-os/ui` run:** diff --git a/ui/src/app/pages/apps-routes/app-list/app-list.page.ts b/ui/src/app/pages/apps-routes/app-list/app-list.page.ts index cc6890cea..19a3daab0 100644 --- a/ui/src/app/pages/apps-routes/app-list/app-list.page.ts +++ b/ui/src/app/pages/apps-routes/app-list/app-list.page.ts @@ -69,7 +69,7 @@ export class AppListPage { private watchNewlyRecovered (): Observable { 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]) }), ) }