Don't block system_health if one value is null (#7644)

This commit is contained in:
Joakim Sørensen 2020-11-11 11:49:10 +01:00 committed by GitHub
parent 2a57ffa615
commit 67707fbc90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,7 +71,10 @@ class SystemHealthCard extends LitElement {
for (const key of Object.keys(domainInfo.info)) {
let value: unknown;
if (typeof domainInfo.info[key] === "object") {
if (
domainInfo.info[key] &&
typeof domainInfo.info[key] === "object"
) {
const info = domainInfo.info[key] as SystemCheckValueObject;
if (info.type === "pending") {