Skip to content

Commit 26e2890

Browse files
committed
home all except plunger when launching stacker error recovery
1 parent 52fad88 commit 26e2890

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

app/src/organisms/ErrorRecoveryFlows/RecoverySplash.tsx

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ import {
3333
BANNER_TEXT_CONTAINER_STYLE,
3434
BANNER_TEXT_CONTENT_STYLE,
3535
RECOVERY_MAP,
36+
STACKER_ERROR_KINDS,
3637
} from './constants'
3738
import { useErrorName } from './hooks'
3839
import { RecoveryInterventionModal, StepInfo } from './shared'
@@ -94,6 +95,8 @@ export function RecoverySplash(props: RecoverySplashProps): JSX.Element | null {
9495
const { proceedToRouteAndStep, handleMotionRouting } = routeUpdateActions
9596
const { reportErrorEvent } = analytics
9697

98+
const isStackerError = STACKER_ERROR_KINDS.includes(errorKind)
99+
97100
const buildTitleHeadingDesktop = (): JSX.Element => {
98101
return (
99102
<StyledText desktopStyle="bodyLargeSemiBold">
@@ -148,8 +151,16 @@ export function RecoverySplash(props: RecoverySplashProps): JSX.Element | null {
148151
)
149152
})
150153
.then(() => handleMotionRouting(true))
151-
.then(() => recoveryCommands.homePipetteZAxes())
152-
.finally(() => handleMotionRouting(false))
154+
.then(() => {
155+
if (isStackerError) {
156+
return recoveryCommands.homeExceptPlungers()
157+
} else {
158+
return recoveryCommands.homePipetteZAxes()
159+
}
160+
})
161+
.finally(() => {
162+
void handleMotionRouting(false)
163+
})
153164
}
154165
handleConditionalClick(onClick)
155166
}

0 commit comments

Comments
 (0)