Browse Source

statistic number data fix

pull/8337/head
Maksym Dudnik 3 years ago
parent
commit
ac0c7ed7b2
  1. 2
      ui-ngx/src/app/shared/components/device/gateway-statistics.component.ts

2
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]) );
}

Loading…
Cancel
Save