From 38215947303b118b7167a03ebbdc0e091921348e Mon Sep 17 00:00:00 2001 From: Jethary Alcid <66035149+jerader@users.noreply.github.com> Date: Tue, 3 Dec 2024 10:28:25 -0500 Subject: [PATCH] fix(step-generation): fix blowout location from multi-dispense disposal (#17013) closes RESC-356 This PR fixes a bug where the blowout tip position associated with a multi-dispense disposal was not properly wired up. This resulted in the blowout position to always be at the top of the well which caused users issues. --- .../formLevel/stepFormToArgs/moveLiquidFormToArgs.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/protocol-designer/src/steplist/formLevel/stepFormToArgs/moveLiquidFormToArgs.ts b/protocol-designer/src/steplist/formLevel/stepFormToArgs/moveLiquidFormToArgs.ts index b77cd8a8f2e..4ee644679dc 100644 --- a/protocol-designer/src/steplist/formLevel/stepFormToArgs/moveLiquidFormToArgs.ts +++ b/protocol-designer/src/steplist/formLevel/stepFormToArgs/moveLiquidFormToArgs.ts @@ -166,7 +166,13 @@ export const moveLiquidFormToArgs = ( 'dispense_delay_mmFromBottom' ) const blowoutLocation = - (fields.blowout_checkbox && fields.blowout_location) || null + (fields.blowout_checkbox && fields.blowout_location) || + (fields.disposalVolume_checkbox && + path === 'multiDispense' && + fields.disposalVolume_volume && + fields.blowout_location) || + null + const blowoutOffsetFromTopMm = blowoutLocation != null ? blowout_z_offset ?? DEFAULT_MM_BLOWOUT_OFFSET_FROM_TOP