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

This commit is contained in:
Stefan Dej 2023-10-22 20:48:02 +02:00 committed by GitHub
parent 6e21642deb
commit c14873a8a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()