fix(graph+dashboard): delete console log
This commit is contained in:
parent
a2befa2950
commit
948899a5ef
|
|
@ -93,7 +93,6 @@ export class DashboardComponent implements OnInit {
|
||||||
this.apiService.getLatestData().subscribe(
|
this.apiService.getLatestData().subscribe(
|
||||||
(response) => {
|
(response) => {
|
||||||
const data = response.data;
|
const data = response.data;
|
||||||
console.log('Data:', data);
|
|
||||||
|
|
||||||
if ((!data.dht || data.dht.length === 0) &&
|
if ((!data.dht || data.dht.length === 0) &&
|
||||||
(!data.npk1 || data.npk1.length === 0) &&
|
(!data.npk1 || data.npk1.length === 0) &&
|
||||||
|
|
|
||||||
|
|
@ -156,7 +156,6 @@ export class GraphComponent implements OnInit, AfterViewInit, OnDestroy {
|
||||||
next: (response) => {
|
next: (response) => {
|
||||||
this.isLoadingNPK2 = false;
|
this.isLoadingNPK2 = false;
|
||||||
if (response.statusCode === 200 && response.data.npk2?.length > 0) {
|
if (response.statusCode === 200 && response.data.npk2?.length > 0) {
|
||||||
console.log(this.selectedNPK2);
|
|
||||||
this.createChart(this.npk2ChartElement.nativeElement, response, 'npk2', this.selectedNPK2);
|
this.createChart(this.npk2ChartElement.nativeElement, response, 'npk2', this.selectedNPK2);
|
||||||
this.isNoDataNPK2 = false;
|
this.isNoDataNPK2 = false;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user