From 3d04c5c8262eadf26277a93ea0032aa41ceeb2f7 Mon Sep 17 00:00:00 2001 From: Nick Diehl <47604184+ncdiehl11@users.noreply.github.com> Date: Tue, 20 Aug 2024 09:36:28 -0400 Subject: [PATCH] fix(app): fix module orientation in intervention modal deck map (#16050) # Overview On intervention modal deck map, we need to pass an orientation to any `Module` components on `BaseDeck`. This reflects the actual orientation of the module on the physical deck. Closes RQA-3006 --- .../MoveLabwareInterventionContent.tsx | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/app/src/organisms/InterventionModal/MoveLabwareInterventionContent.tsx b/app/src/organisms/InterventionModal/MoveLabwareInterventionContent.tsx index b940cee7f3d..a14c65fa036 100644 --- a/app/src/organisms/InterventionModal/MoveLabwareInterventionContent.tsx +++ b/app/src/organisms/InterventionModal/MoveLabwareInterventionContent.tsx @@ -22,13 +22,14 @@ import { TYPOGRAPHY, } from '@opentrons/components' import { + getDeckDefFromRobotType, + getLoadedLabwareDefinitionsByUri, + getModuleType, + inferModuleOrientationFromXCoordinate, OT2_ROBOT_TYPE, TC_MODULE_LOCATION_OT2, TC_MODULE_LOCATION_OT3, THERMOCYCLER_MODULE_TYPE, - getDeckDefFromRobotType, - getLoadedLabwareDefinitionsByUri, - getModuleType, } from '@opentrons/shared-data' import { @@ -213,7 +214,13 @@ export function MoveLabwareInterventionContent({ nestedLabwareDef, nestedLabwareId, }) => ( - + {nestedLabwareDef != null && nestedLabwareId !== command.params.labwareId ? (