Skip to content

Commit

Permalink
fix: fix filament type check in StartPrintDialog (#1620)
Browse files Browse the repository at this point in the history
  • Loading branch information
meteyou authored Oct 22, 2023
1 parent 6e21642 commit c14873a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/dialogs/StartPrintDialogSpoolman.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ export default class StartPrintDialogSpoolman extends Mixins(BaseMixin) {
return alerts
}
const gcodeFilamentType = this.file.filament_type ?? ''
let gcodeFilamentType = this.file.filament_type ?? ''
if (gcodeFilamentType.includes(';')) gcodeFilamentType = gcodeFilamentType.split(';')[0]
if (
gcodeFilamentType !== '' &&
this.activeSpool?.filament?.material?.toLowerCase() !== gcodeFilamentType.toLowerCase()
Expand Down

0 comments on commit c14873a

Please sign in to comment.