[desktop] minor fix in dashboard component
This commit is contained in:
@@ -348,11 +348,13 @@ export class DashboardPageComponent implements OnInit, AfterViewInit {
|
|||||||
)
|
)
|
||||||
.subscribe(response => {
|
.subscribe(response => {
|
||||||
// bandwidth bar chart
|
// bandwidth bar chart
|
||||||
const barChartData = response.bwBarChart
|
if (response?.bwBarChart){
|
||||||
.filter(value => (value.sent + value.received) > 0)
|
const barChartData = response.bwBarChart
|
||||||
.sort((a, b) => (b.sent + b.received) - (a.sent + a.received))
|
.filter(value => (value.sent + value.received) > 0)
|
||||||
.slice(0, 10);
|
.sort((a, b) => (b.sent + b.received) - (a.sent + a.received))
|
||||||
this.bandwidthBarData = splitQueryResult(barChartData, ['sent', 'received']) as BandwidthBarData[]
|
.slice(0, 10);
|
||||||
|
this.bandwidthBarData = splitQueryResult(barChartData, ['sent', 'received']) as BandwidthBarData[]
|
||||||
|
}
|
||||||
|
|
||||||
// profileCount
|
// profileCount
|
||||||
this.blockedConnections = 0;
|
this.blockedConnections = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user