Skip to content

Commit 35ad527

Browse files
authored
fix(protocol-designer): fix wastechute and trashbin check for dispense (#19709)
* fix(protocol-designer): fix wastechute and trashbin check for dispense
1 parent 7303417 commit 35ad527

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

protocol-designer/src/pages/Designer/ProtocolSteps/StepForm/StepTools/MoveLiquidTools/SecondStepsMoveLiquidTools.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,9 @@ export const SecondStepsMoveLiquidTools = ({
171171
]
172172
)
173173
const labwareId = formData[`${tab}_labware`]
174+
const shouldCheckLabwareDef = tab === 'aspirate' || !isDestinationTrash
174175
// The getMinXYDimension() call below is crashing quite often, but I'm not sure why
175-
if (!labwareEntities[labwareId]?.def) {
176+
if (shouldCheckLabwareDef && !labwareEntities[labwareId]?.def) {
176177
throw new Error(
177178
`missing ${tab}_labware def for ${labwareId}, ` +
178179
`in labwareEntities: ${!!labwareEntities[labwareId]}`

0 commit comments

Comments
 (0)