fix: fix init issue in controls panel
Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
@@ -20,7 +20,7 @@ export default class ControlMixin extends Vue {
|
||||
}
|
||||
|
||||
get existsQGL() {
|
||||
if (!this.$store.state.printer.configfile.settings) {
|
||||
if (!this.$store.state.printer.configfile?.settings) {
|
||||
return false
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ export default class ControlMixin extends Vue {
|
||||
}
|
||||
|
||||
get existsZtilt() {
|
||||
if (!this.$store.state.printer.configfile.settings) {
|
||||
if (!this.$store.state.printer.configfile?.settings) {
|
||||
return false
|
||||
}
|
||||
|
||||
|
@@ -166,7 +166,7 @@ export default class ControlPanelExtruder extends Mixins(BaseMixin) {
|
||||
}
|
||||
|
||||
get minExtrudeTemp() {
|
||||
return this.$store.state.printer.configfile.settings.extruder.min_extrude_temp
|
||||
return this.$store.state.printer.configfile?.settings?.extruder?.min_extrude_temp ?? 170
|
||||
}
|
||||
|
||||
doSend(gcode: string) {
|
||||
|
Reference in New Issue
Block a user