Also check if stage exists

This commit is contained in:
Joe Knapper 2026-06-30 14:33:48 +01:00 committed by Julian Stirling
parent fb96568df4
commit e291e2ef52

View file

@ -123,7 +123,7 @@ export default {
// Ask which way the z motor turns, right after the welcome screen but before any
// other tasks, so the stage is correctly oriented before anything else runs.
if (this.thingDescription("stage").title != "DummyStage") {
if (this.thingAvailable("stage") && this.thingDescription("stage").title != "DummyStage") {
tasks.push({
component: markRaw(singleStepTask),
props: { stepComponent: zMotorDirectionStep },