Skip to content

Commit

Permalink
fix random well selection field bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jerader committed Feb 16, 2024
1 parent 1851f49 commit b2ab68c
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,10 @@ export const WellSelectionField = (props: Props): JSX.Element => {
const stepId = useSelector(getSelectedStepId)
const pipetteEntities = useSelector(stepFormSelectors.getPipetteEntities)
const wellSelectionLabwareKey = useSelector(getWellSelectionLabwareKey)
const primaryWellCount = Array.isArray(selectedWells)
? selectedWells.length.toString()
: undefined
const primaryWellCount =
Array.isArray(selectedWells) && selectedWells.length > 0
? selectedWells.length.toString()
: undefined
const pipette = pipetteId != null ? pipetteEntities[pipetteId] : null
const is8Channel = pipette != null ? pipette.spec.channels === 8 : false

Expand Down

0 comments on commit b2ab68c

Please sign in to comment.