bugfix: sort temp sensors for the tempchart
This commit is contained in:
parent
5795fe45d1
commit
e25c10c757
@ -37,7 +37,7 @@ export default {
|
||||
let now = new Date();
|
||||
|
||||
if (data !== undefined) {
|
||||
for (let [key, datasets] of Object.entries(data)) {
|
||||
Object.entries(data).sort().forEach(([key, datasets]) => {
|
||||
let keySplit = key.split(" ");
|
||||
|
||||
if (keySplit.length > 1) key = keySplit[1];
|
||||
@ -55,7 +55,7 @@ export default {
|
||||
time: time
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user