Skip to content

Commit

Permalink
fix(app): fix ODD map view nick name display issue (#17019)
Browse files Browse the repository at this point in the history
* fix(app): fix ODD map view nick name display issue
  • Loading branch information
koji authored Dec 4, 2024
1 parent bc8f0a0 commit d2d8d08
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
ALIGN_FLEX_START,
BORDERS,
Box,
Chip,
COLORS,
DeckInfoLabel,
DIRECTION_COLUMN,
Expand All @@ -15,18 +16,16 @@ import {
Icon,
JUSTIFY_SPACE_BETWEEN,
JUSTIFY_SPACE_EVENLY,
LegacyStyledText,
MODULE_ICON_NAME_BY_TYPE,
SPACING,
LegacyStyledText,
TYPOGRAPHY,
Chip,
} from '@opentrons/components'
import {
FLEX_ROBOT_TYPE,
getDeckDefFromRobotType,
getLabwareDefURI,
getTopLabwareInfo,
getModuleDisplayName,
getTopLabwareInfo,
HEATERSHAKER_MODULE_TYPE,
TC_MODULE_LOCATION_OT3,
THERMOCYCLER_MODULE_TYPE,
Expand Down Expand Up @@ -130,15 +129,16 @@ export function ProtocolSetupLabware({
)
if (foundLabware != null) {
const nickName = onDeckItems.find(
item => getLabwareDefURI(item.definition) === foundLabware.definitionUri
item => item.labwareId === foundLabware.id
)?.nickName

const location = onDeckItems.find(
item => item.labwareId === foundLabware.id
)?.initialLocation
if (location != null) {
setSelectedLabware({
...labwareDef,
location: location,
location,
nickName: nickName ?? null,
id: labwareId,
})
Expand Down

0 comments on commit d2d8d08

Please sign in to comment.