From 812cf62aaf7ba7278636b506407bdb58f6670292 Mon Sep 17 00:00:00 2001 From: smb2268 Date: Thu, 21 Nov 2024 15:29:39 -0500 Subject: [PATCH] Use slot level detail for lpc headers --- app/src/organisms/LabwarePositionCheck/CheckItem.tsx | 11 +++++++++-- .../LabwarePositionCheck/utils/getDisplayLocation.ts | 6 +++++- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/app/src/organisms/LabwarePositionCheck/CheckItem.tsx b/app/src/organisms/LabwarePositionCheck/CheckItem.tsx index c9050b5dd3f..5d5008554a6 100644 --- a/app/src/organisms/LabwarePositionCheck/CheckItem.tsx +++ b/app/src/organisms/LabwarePositionCheck/CheckItem.tsx @@ -156,6 +156,13 @@ export const CheckItem = (props: CheckItemProps): JSX.Element | null => { t as TFunction, i18n ) + const slotOnlyDisplayLocation = getDisplayLocation( + location, + labwareDefs, + t as TFunction, + i18n, + true + ) const labwareDisplayName = getLabwareDisplayName(labwareDef) let placeItemInstruction: JSX.Element = ( @@ -445,7 +452,7 @@ export const CheckItem = (props: CheckItemProps): JSX.Element | null => { { {...props} header={t('prepare_item_in_location', { item: isTiprack ? t('tip_rack') : t('labware'), - location: displayLocation, + location: slotOnlyDisplayLocation, })} body={