From 243b7c962a4e82b04ab32b81b1618225a391ae38 Mon Sep 17 00:00:00 2001 From: Maksym Dudnik Date: Mon, 31 Jul 2023 13:40:43 +0300 Subject: [PATCH] connector status and new gateway cards --- .../widget/lib/gateway/gateway-connectors.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-connectors.component.ts b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-connectors.component.ts index f673f67cf4..655c50617d 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-connectors.component.ts +++ b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-connectors.component.ts @@ -511,7 +511,7 @@ export class GatewayConnectorComponent extends PageComponent implements AfterVie getErrorsCount(attribute) { const connectorName = attribute.key; - const connector = this.subscription.data.find(data=>data && data.dataKey.name === `${connectorName}_ERRORS_COUNT`); + const connector = this.subscription && this.subscription.data.find(data=>data && data.dataKey.name === `${connectorName}_ERRORS_COUNT`); return (connector && this.activeConnectors.includes(connectorName))? connector.data[0][1]: 'inactive'; } }