Skip to content

Commit

Permalink
fixed sensor menu with reset ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
io53 committed Jun 13, 2024
1 parent 95cb46c commit 9a6db38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/SensorMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class SensorMenu extends Component {
let order = getSetting("SENSOR_ORDER", null)
if (order) {
order = JSON.parse(order)
if (order) {
if (order && order.length > 0) {
return order.map(x => this.state.sensors.find(y => y.sensor === x))
}
}
Expand Down

0 comments on commit 9a6db38

Please sign in to comment.