Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jerader committed Jan 17, 2025
1 parent 26995f7 commit 471db84
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions protocol-designer/src/organisms/Labware/SelectableLabware.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export const SelectableLabware = (
selectedWells: WellGroup
) => WellGroup = selectedWells => {
// Returns PRIMARY WELLS from the selection.
if (nozzleType != null && nozzleType !== SINGLE) {
if (nozzleType !== null && nozzleType !== SINGLE) {
const channels = getChannelsFromNozzleType(nozzleType)
// for the wells that have been highlighted,
// get all 8-well well sets and merge them
Expand Down Expand Up @@ -101,7 +101,7 @@ export const SelectableLabware = (
rect
) => {
if (!e.shiftKey) {
if (nozzleType != null && nozzleType !== SINGLE) {
if (nozzleType !== null && nozzleType !== SINGLE) {
const channels = getChannelsFromNozzleType(nozzleType)
const selectedWells = _getWellsFromRect(rect)
const allWellsForMulti: WellGroup = reduce(
Expand Down Expand Up @@ -142,7 +142,7 @@ export const SelectableLabware = (
}

const handleMouseEnterWell: (args: WellMouseEvent) => void = args => {
if (nozzleType != null && nozzleType !== SINGLE) {
if (nozzleType !== null && nozzleType !== SINGLE) {
const channels = getChannelsFromNozzleType(nozzleType)
const wellSet = getWellSetForMultichannel({
labwareDef,
Expand All @@ -158,7 +158,7 @@ export const SelectableLabware = (

// For rendering, show all wells not just primary wells
const allSelectedWells =
nozzleType != null && nozzleType !== SINGLE
nozzleType !== null && nozzleType !== SINGLE
? reduce<WellGroup, WellGroup>(
selectedPrimaryWells,
(acc, _, wellName): WellGroup => {
Expand Down

0 comments on commit 471db84

Please sign in to comment.