fix metrics order

This commit is contained in:
liamcottle
2024-03-14 03:59:09 +13:00
parent d4acf0c487
commit 2bae24d19d

View File

@ -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 = [];