fix metrics order
This commit is contained in:
parent
d4acf0c487
commit
2bae24d19d
1 changed files with 2 additions and 1 deletions
|
|
@ -559,7 +559,8 @@
|
||||||
count: 100,
|
count: 100,
|
||||||
},
|
},
|
||||||
}).then((response) => {
|
}).then((response) => {
|
||||||
this.selectedNodeDeviceMetrics = response.data.device_metrics;
|
// reverse response, as it's newest to oldest, but we want oldest to newest
|
||||||
|
this.selectedNodeDeviceMetrics = response.data.device_metrics.reverse();
|
||||||
this.renderDeviceMetricCharts();
|
this.renderDeviceMetricCharts();
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.selectedNodeDeviceMetrics = [];
|
this.selectedNodeDeviceMetrics = [];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue