Skip to content

Commit

Permalink
fix: duplicate checkbox for pwm fan (fixes mainsail-crew#799)
Browse files Browse the repository at this point in the history
Signed-off-by: Dominik Willner <[email protected]>
  • Loading branch information
dw-0 committed May 13, 2022
1 parent eadf2e1 commit 8c64ce7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/charts/TempChart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ export default class TempChart extends Mixins(BaseMixin) {
if (dataset.seriesName.includes('-')) {
if (dataset.seriesName.lastIndexOf('-') > -1) {
const suffix = dataset.seriesName.slice(dataset.seriesName.lastIndexOf('-') + 1)
return !['target', 'power'].includes(suffix)
return !['target', 'power', 'speed'].includes(suffix)
}
return true
Expand Down
2 changes: 1 addition & 1 deletion src/store/printer/tempHistory/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export const actions: ActionTree<PrinterTempHistoryState, RootState> = {
if (tmp.startsWith('_')) return false
if (tmp.lastIndexOf('-') > -1) {
const suffix = tmp.slice(tmp.lastIndexOf('-') + 1)
return !['target', 'power'].includes(suffix)
return !['target', 'power', 'speed'].includes(suffix)
}

return true
Expand Down

0 comments on commit 8c64ce7

Please sign in to comment.