From ac0c7ed7b264f765cbc99160d295adab65e815b4 Mon Sep 17 00:00:00 2001 From: Maksym Dudnik Date: Fri, 9 Jun 2023 16:00:32 +0300 Subject: [PATCH] statistic number data fix --- .../shared/components/device/gateway-statistics.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui-ngx/src/app/shared/components/device/gateway-statistics.component.ts b/ui-ngx/src/app/shared/components/device/gateway-statistics.component.ts index 369b88afe9..cc0c2e0591 100644 --- a/ui-ngx/src/app/shared/components/device/gateway-statistics.component.ts +++ b/ui-ngx/src/app/shared/components/device/gateway-statistics.component.ts @@ -270,7 +270,7 @@ export class GatewayStatisticsComponent extends PageComponent implements AfterVi return; } this.dataSource.data = this.subscription.data.length ? this.subscription.data[0].data : []; - this.isNumericData = this.dataSource.data.every(data => isNumber(data[1])); + this.isNumericData = this.dataSource.data.every(data => !isNaN(+data[1]) ); }