From 169039c69b01dba4bc2c05cf75f84aaf0eb8862e Mon Sep 17 00:00:00 2001 From: Matt Hill Date: Tue, 5 Oct 2021 15:56:35 -0600 Subject: [PATCH] fix list page bug --- .../app/pages/apps-routes/app-list/app-list.page.ts | 6 +++++- ui/src/app/services/api/api.fixures.ts | 12 ++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) 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 3ed092d6c..80205c947 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 @@ -35,7 +35,11 @@ export class AppListPage { this.patch.watch$('package-data') .pipe( filter(obj => { - return obj && Object.keys(obj).length !== Object.keys(this.pkgs).length + return obj && + ( + isEmptyObject(obj) || + Object.keys(obj).length !== Object.keys(this.pkgs).length + ) }), ) .subscribe(pkgs => { diff --git a/ui/src/app/services/api/api.fixures.ts b/ui/src/app/services/api/api.fixures.ts index 48e5c1859..e43470af0 100644 --- a/ui/src/app/services/api/api.fixures.ts +++ b/ui/src/app/services/api/api.fixures.ts @@ -852,6 +852,18 @@ export module Mock { value: 10.1, unit: '%', }, + 'Hmmmm4': { + value: Math.random(), + unit: 'mi/b', + }, + 'Hmmmm5': { + value: 50, + unit: '%', + }, + 'Hmmmm6': { + value: 10.1, + unit: '%', + }, }, } }