Skip to content

Commit 3fbbfb5

Browse files
committed
fix: enhance chart pie component
1 parent 8f962fd commit 3fbbfb5

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

frontend/src/app/defined-charts/components/common/chart-common-pie/chart-common-pie.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ export class ChartCommonPieComponent implements OnInit, OnDestroy {
7676
return this.overviewAlertDashboardService.getDataPie(this.endpoint, this.queryParams)
7777
.pipe(
7878
map(response => response.body),
79-
tap(data => {
79+
tap(response => {
8080
this.loadingPieOption = false;
81-
if (data.length > 0) {
81+
if (response.data.length > 0) {
8282
this.noData = false;
83-
this.buildPieChart(data);
83+
this.buildPieChart(response);
8484
} else {
8585
this.noData = true;
8686
}

frontend/src/app/shared/services/util/refresh.service.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ export class RefreshService {
2828
startInterval() {
2929
this.subscription = this.interval$
3030
.subscribe(() => {
31-
console.log('emitting refresh');
3231
this.sendRefresh();
3332
});
3433
}

0 commit comments

Comments
 (0)