fix list page bug

This commit is contained in:
Matt Hill
2021-10-05 15:56:35 -06:00
committed by Aiden McClelland
parent c8d2520248
commit 169039c69b
2 changed files with 17 additions and 1 deletions

View File

@@ -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 => {

View File

@@ -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: '%',
},
},
}
}