Skip to content

Commit 1039e46

Browse files
authored
fix(protocol-designer): restore tip position behavior on BatchEdit (#19132)
This PR restores the disabling of the tip position in BatchEdit, since relative positions of wells with different depths are not configurable in a single modal. Closes RQA-4487
1 parent 894bd9e commit 1039e46

File tree

1 file changed

+2
-2
lines changed
  • protocol-designer/src/pages/Designer/ProtocolSteps/StepForm/PipetteFields

1 file changed

+2
-2
lines changed

protocol-designer/src/pages/Designer/ProtocolSteps/StepForm/PipetteFields/PositionField.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ export function PositionField(props: PositionFieldProps): JSX.Element {
109109

110110
const handleOpen = (has3Specs: boolean): void => {
111111
if (
112-
wellDepthMm != null &&
113-
(has3Specs ? wellXWidthMm != null && wellYWidthMm != null : true)
112+
(has3Specs && wellDepthMm && wellXWidthMm && wellYWidthMm) ||
113+
(!has3Specs && wellDepthMm)
114114
) {
115115
setIsModalOpen(true)
116116
}

0 commit comments

Comments
 (0)