fix metrics order
This commit is contained in:
@ -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 = [];
|
||||||
|
Reference in New Issue
Block a user