Skip to content

Commit

Permalink
fix(protocol-designer): fix well depth for blowout field (#15809)
Browse files Browse the repository at this point in the history
closes RESC-309
  • Loading branch information
jerader authored Jul 26, 2024
1 parent adb75f5 commit 5615d1e
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
DEST_WELL_BLOWOUT_DESTINATION,
SOURCE_WELL_BLOWOUT_DESTINATION,
} from '@opentrons/step-generation'
import { getWellDepth } from '@opentrons/shared-data'
import {
COLORS,
Flex,
Expand Down Expand Up @@ -45,9 +46,9 @@ export function BlowoutZOffsetField(
labwareId = destLabwareId
}

const labwareZDimension =
labwareId != null
? labwareEntities[String(labwareId)]?.def.dimensions.zDimension
const labwareWellDepth =
labwareId != null && labwareEntities[String(labwareId)]?.def != null
? getWellDepth(labwareEntities[String(labwareId)].def, 'A1')
: 0

return (
Expand All @@ -61,7 +62,7 @@ export function BlowoutZOffsetField(
name={name}
zValue={Number(value)}
updateValue={updateValue}
wellDepthMm={labwareZDimension}
wellDepthMm={labwareWellDepth}
/>
) : null}
<Flex
Expand Down

0 comments on commit 5615d1e

Please sign in to comment.