-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(protocol-designer): fix missing disposal volume in new distribute forms #2733
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,7 @@ export default function getDefaultsForStepType (stepType: StepType) { | |
'dispense_wellOrder_second': DEFAULT_WELL_ORDER_SECOND_OPTION, | ||
'dispense_mmFromBottom': DEFAULT_MM_FROM_BOTTOM_DISPENSE, | ||
'dispense_wells': [], | ||
'pipette': null, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Instead of using a hard-coded array somewhere like |
||
'volume': undefined, | ||
} | ||
case 'consolidate': | ||
|
@@ -37,6 +38,7 @@ export default function getDefaultsForStepType (stepType: StepType) { | |
'dispense_labware': null, | ||
'dispense_mmFromBottom': DEFAULT_MM_FROM_BOTTOM_DISPENSE, | ||
'dispense_wells': [], | ||
'pipette': null, | ||
'volume': undefined, | ||
} | ||
case 'mix': | ||
|
@@ -45,9 +47,10 @@ export default function getDefaultsForStepType (stepType: StepType) { | |
'labware': null, | ||
'aspirate_wellOrder_first': DEFAULT_WELL_ORDER_FIRST_OPTION, | ||
'aspirate_wellOrder_second': DEFAULT_WELL_ORDER_SECOND_OPTION, | ||
'wells': [], | ||
'mix_mmFromBottom': DEFAULT_MM_FROM_BOTTOM_DISPENSE, // NOTE: mix uses dispense for both asp + disp, for now | ||
'pipette': null, | ||
'volume': undefined, | ||
'wells': [], | ||
} | ||
case 'distribute': | ||
return { | ||
|
@@ -62,6 +65,7 @@ export default function getDefaultsForStepType (stepType: StepType) { | |
'dispense_wellOrder_second': DEFAULT_WELL_ORDER_SECOND_OPTION, | ||
'dispense_mmFromBottom': DEFAULT_MM_FROM_BOTTOM_DISPENSE, | ||
'dispense_wells': [], | ||
'pipette': null, | ||
'volume': undefined, | ||
} | ||
default: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this
updateDisposalVolume
logic should all happen in handleFormChange now