fix: fix init issue in controls panel

Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
Stefan Dej 2022-03-04 23:40:32 +01:00
parent a6b97f68e5
commit a48554dd54
No known key found for this signature in database
GPG Key ID: 5D3A5823133D2246
2 changed files with 3 additions and 3 deletions

View File

@ -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
}

View File

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