Skip to content

Commit

Permalink
deselect all wells when confirming form
Browse files Browse the repository at this point in the history
  • Loading branch information
ncdiehl11 committed Nov 14, 2024
1 parent d0462e4 commit 6140ead
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 @@ -131,6 +131,7 @@ export const SelectableLabware = (props: Props): JSX.Element => {
rect
) => {
const wells = _wellsFromSelected(_getWellsFromRect(rect))
console.log(wells)
const areWellsAlreadySelected = Object.keys(wells).every(
well => well in selectedPrimaryWells
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,10 @@ export function LiquidToolbox(props: LiquidToolboxProps): JSX.Element {
</StyledText>
}
confirmButtonText={t('shared:done')}
onConfirmClick={onClose}
onConfirmClick={() => {
dispatch(deselectAllWells())
onClose()
}}
onCloseClick={handleClearSelectedWells}
height="calc(100vh - 64px)"
closeButton={
Expand Down

0 comments on commit 6140ead

Please sign in to comment.