mirror of
https://github.com/Roslund/meshtastic-map.git
synced 2026-11-08 14:42:25 +01:00
fix metrics order
This commit is contained in:
1 parent
d4acf0c487
commit
2bae24d19d
1 file changed
+2
-1
@@ -559,7 +559,8 @@
|
||||
count: 100,
|
||||
},
|
||||
}).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();
|
||||
}).catch(() => {
|
||||
this.selectedNodeDeviceMetrics = [];
|
||||
|
||||
Reference in new issue
Block a user