diff --git a/src/components/dialogs/TheScrewsTiltAdjustDialog.vue b/src/components/dialogs/TheScrewsTiltAdjustDialog.vue
index b3f2017df..215ec7c07 100644
--- a/src/components/dialogs/TheScrewsTiltAdjustDialog.vue
+++ b/src/components/dialogs/TheScrewsTiltAdjustDialog.vue
@@ -22,7 +22,10 @@
-
+
@@ -50,14 +53,11 @@ import TheScrewsTiltAdjustDialogEntry from '@/components/dialogs/TheScrewsTiltAd
export default class TheScrewsTiltAdjustDialog extends Mixins(BaseMixin, ControlMixin) {
mdiArrowCollapseDown = mdiArrowCollapseDown
mdiCloseThick = mdiCloseThick
- get state() {
- return this.$store.state.printer.screws_tilt_adjust ?? {}
- }
get error() {
- return this.state.error ?? false
+ return this.$store.state.printer.screws_tilt_adjust?.error ?? false
}
get results() {
- return this.state.results ?? {}
+ return this.$store.state.printer.screws_tilt_adjust?.results ?? {}
}
get showDialog() {
return this.error || Object.keys(this.results).length
diff --git a/src/store/printer/mutations.ts b/src/store/printer/mutations.ts
index 35f56c485..77a1b0232 100644
--- a/src/store/printer/mutations.ts
+++ b/src/store/printer/mutations.ts
@@ -61,6 +61,6 @@ export const mutations: MutationTree = {
clearScrewsTiltAdjust(state) {
Vue.set(state.screws_tilt_adjust, 'error', false)
- Vue.set(state.screws_tilt_adjust, 'results', [])
+ Vue.set(state.screws_tilt_adjust, 'results', {})
},
}