Skip to content

Commit

Permalink
fix(protocol-designer): disallow touchtip if destination is trash
Browse files Browse the repository at this point in the history
If destination type is trash bin or waste chute, disable touch tip field in moveLiquid form.

Closes AUTH-1480
  • Loading branch information
ncdiehl11 committed Mar 6, 2025
1 parent 624a265 commit fdea983
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,11 @@ export function MoveLiquidTools(props: StepFormProps): JSX.Element {
tooltipText={
propsForFields[`${tab}_touchTip_checkbox`].tooltipContent
}
disabled={
(destinationLabwareType === 'trashBin' ||
destinationLabwareType === 'wasteChute') &&
tab === 'dispense'

Check warning on line 500 in protocol-designer/src/pages/Designer/ProtocolSteps/StepForm/StepTools/MoveLiquidTools/index.tsx

View check run for this annotation

Codecov / codecov/patch

protocol-designer/src/pages/Designer/ProtocolSteps/StepForm/StepTools/MoveLiquidTools/index.tsx#L497-L500

Added lines #L497 - L500 were not covered by tests
}
>
{formData[`${tab}_touchTip_checkbox`] === true ? (
<PositionField
Expand Down

0 comments on commit fdea983

Please sign in to comment.