From d3e6371e9fc855ec961c14e9831e60199fedfca9 Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Sun, 8 Dec 2024 00:03:03 +0100 Subject: [PATCH] fix: fix interface settings Control-Tab when printer is not available (#2071) * fix: fix interface settings Control-Tab when printer is not available Signed-off-by: Stefan Dej * fix: also fix a kinematic none system Signed-off-by: Stefan Dej * fix: display only select when klippy is ready Signed-off-by: Stefan Dej --------- Signed-off-by: Stefan Dej --- src/components/mixins/zoffset.ts | 4 +-- .../settings/SettingsControlTab.vue | 28 ++++++++++--------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/components/mixins/zoffset.ts b/src/components/mixins/zoffset.ts index 9ea91a429..02c072eda 100644 --- a/src/components/mixins/zoffset.ts +++ b/src/components/mixins/zoffset.ts @@ -30,9 +30,7 @@ export default class ZoffsetMixin extends Vue { } get endstop_pin() { - const stepperConfig = this.settings[this.stepper_name] ?? {} - - return stepperConfig?.endstop_pin.trim() + return this.settings[this.stepper_name]?.endstop_pin?.trim() ?? null } get zOffset(): number { diff --git a/src/components/settings/SettingsControlTab.vue b/src/components/settings/SettingsControlTab.vue index 6a8ff0f76..6c06182a8 100644 --- a/src/components/settings/SettingsControlTab.vue +++ b/src/components/settings/SettingsControlTab.vue @@ -178,18 +178,20 @@ - - - - +