Skip to content

Commit

Permalink
fix: hide temperature sensors with _ at first char (#1195)
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Dej <meteyou@gmail.com>

Signed-off-by: Stefan Dej <meteyou@gmail.com>
  • Loading branch information
meteyou authored Dec 17, 2022
1 parent 41fa1d9 commit e21439d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/panels/TemperaturePanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,9 @@ export default class TemperaturePanel extends Mixins(BaseMixin, ControlMixin) {
}
get temperatureObjects() {
return this.$store.getters['printer/getTemperatureObjects'] ?? []
const sensors = this.$store.getters['printer/getTemperatureObjects'] ?? []
return sensors.filter((sensor: PrinterStateTemperatureObject) => !sensor.name.startsWith('_'))
}
preheat(preset: GuiPresetsStatePreset): void {
Expand Down

0 comments on commit e21439d

Please sign in to comment.