Skip to content

Commit

Permalink
when fill level is 0 filter fails fix
Browse files Browse the repository at this point in the history
  • Loading branch information
monicakochofar committed Sep 22, 2023
1 parent 9108b57 commit 2c0875e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app_vue/src/stores/sensors_store.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const useSensorStore = defineStore('sensors', {
this.sensors = this.allSensors.filter(sensor => {
// filter for fill range
const fillRangeFilter = () => {
if (this.selectedFillRange && sensor.fill_level) {
if (this.selectedFillRange && (sensor.fill_level || sensor.fill_level === 0)) {
return sensor.fill_level >= this.selectedFillRange[0] && sensor.fill_level <= this.selectedFillRange[1];
}
return true;
Expand Down Expand Up @@ -121,4 +121,4 @@ export const useSensorStore = defineStore('sensors', {
})
}
},
})
})

0 comments on commit 2c0875e

Please sign in to comment.