fix: fix filament type check in StartPrintDialog (#1620)

This commit is contained in:
Stefan Dej authored and GitHub committed 2023-10-22 20:48:02 +02:00
1 parent 6e21642deb
commit c14873a8a5
1 file changed
+3 -1
@@ -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()