From e7895328a1c4133ed56a0c9e7cada7dc219d411c Mon Sep 17 00:00:00 2001 From: Ludeeus Date: Wed, 11 Nov 2020 09:55:58 +0000 Subject: [PATCH] Check if the value exsist --- src/panels/config/info/system-health-card.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/panels/config/info/system-health-card.ts b/src/panels/config/info/system-health-card.ts index 775602dd6d82..765725b13326 100644 --- a/src/panels/config/info/system-health-card.ts +++ b/src/panels/config/info/system-health-card.ts @@ -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") {