Skip to content

Commit

Permalink
fix(protocol-designer): fix bug with pipette field change (#3585)
Browse files Browse the repository at this point in the history
Changing the pipette field now resets flow rate and tip offset fields.

This also affects pipette swapping in the Edit Pipettes modal. Before
this fix, it wouldn't actually clear out the fields it says it would.
  • Loading branch information
IanLondon authored Jun 18, 2019
1 parent 07ec69e commit 851edf4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export default function getDefaultsForStepType(
path: 'single',
aspirate_wells_grouped: false,

aspirate_flowRate: null,
aspirate_labware: null,
aspirate_wells: [],
aspirate_wellOrder_first: DEFAULT_WELL_ORDER_FIRST_OPTION,
Expand All @@ -45,6 +46,7 @@ export default function getDefaultsForStepType(
aspirate_mmFromBottom: DEFAULT_MM_FROM_BOTTOM_ASPIRATE,
aspirate_touchTip_checkbox: false,

dispense_flowRate: null,
dispense_labware: null,
dispense_wells: [],
dispense_wellOrder_first: DEFAULT_WELL_ORDER_FIRST_OPTION,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,9 @@ const updatePatchOnPipetteChange = (
'dispense_flowRate',
'aspirate_mix_volume',
'dispense_mix_volume',
'disposalVolume_volume'
'disposalVolume_volume',
'aspirate_mmFromBottom',
'dispense_mmFromBottom'
),
}
}
Expand Down

0 comments on commit 851edf4

Please sign in to comment.