Skip to content

Commit

Permalink
add addressableAreaName to ODD selected labware modal
Browse files Browse the repository at this point in the history
  • Loading branch information
brenthagen committed Nov 16, 2023
1 parent cf9165b commit da3d96c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/src/organisms/ProtocolSetupLabware/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,14 @@ export function ProtocolSetupLabware({
'slotName' in selectedLabware?.location
) {
location = <LocationIcon slotName={selectedLabware?.location.slotName} />
} else if (
selectedLabware != null &&
typeof selectedLabware.location === 'object' &&
'addressableAreaName' in selectedLabware?.location
) {
location = (

Check warning on line 150 in app/src/organisms/ProtocolSetupLabware/index.tsx

View check run for this annotation

Codecov / codecov/patch

app/src/organisms/ProtocolSetupLabware/index.tsx#L150

Added line #L150 was not covered by tests
<LocationIcon slotName={selectedLabware?.location.addressableAreaName} />
)
} else if (
selectedLabware != null &&
typeof selectedLabware.location === 'object' &&
Expand Down

0 comments on commit da3d96c

Please sign in to comment.