From a34fb1403647b53ff1016a0569af4c23a5a71e31 Mon Sep 17 00:00:00 2001 From: Jamey Huffnagle Date: Thu, 21 Nov 2024 10:33:54 -0500 Subject: [PATCH] fix(app): home gripper G axis insted of unsafe/ungripLabware Co-authored-by: TamarZanzouri --- .../ErrorRecoveryFlows/hooks/useRecoveryCommands.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/organisms/ErrorRecoveryFlows/hooks/useRecoveryCommands.ts b/app/src/organisms/ErrorRecoveryFlows/hooks/useRecoveryCommands.ts index 65bd77eed0b..76110c22dc9 100644 --- a/app/src/organisms/ErrorRecoveryFlows/hooks/useRecoveryCommands.ts +++ b/app/src/organisms/ErrorRecoveryFlows/hooks/useRecoveryCommands.ts @@ -105,6 +105,7 @@ export function useRecoveryCommands({ } = useUpdateErrorRecoveryPolicy(runId) const { makeSuccessToast } = recoveryToastUtils + // TODO(jh, 11-21-24): Some commands return a 200 with an error body. We should catch these and propagate the error. const chainRunRecoveryCommands = useCallback( ( commands: CreateCommand[], @@ -354,8 +355,8 @@ export const HOME_PIPETTE_Z_AXES: CreateCommand = { } export const RELEASE_GRIPPER_JAW: CreateCommand = { - commandType: 'unsafe/ungripLabware', - params: {}, + commandType: 'home', + params: { axes: ['extensionJaw'] }, intent: 'fixit', }