Skip to content

Commit

Permalink
ff to fix linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
ncdiehl11 committed Nov 16, 2023
1 parent 19e73d8 commit 2ff50b7
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions app/src/organisms/CommandText/PipettingCommandText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,12 @@ import {
getLabwareName,
getLabwareDisplayLocation,
getFinalLabwareLocation,
getWellRange,

Check failure on line 15 in app/src/organisms/CommandText/PipettingCommandText.tsx

View workflow job for this annotation

GitHub Actions / js checks

Module '"./utils"' has no exported member 'getWellRange'.
} from './utils'

import type { PipettingRunTimeCommand } from '@opentrons/shared-data'
import type {
PipetteName,
PipettingRunTimeCommand,
} from '@opentrons/shared-data'

interface PipettingCommandTextProps {
command: PipettingRunTimeCommand
Expand Down Expand Up @@ -109,8 +112,20 @@ export const PipettingCommandText = ({
})
}
case 'pickUpTip': {
const pipetteId = command.params.pipetteId
const pipetteName:
| PipetteName
| undefined = robotSideAnalysis.pipettes.find(
pip => pip.id === pipetteId
)?.pipetteName

return t('pickup_tip', {
well_name: wellName,
well_range: getWellRange(
pipetteId,
allPreviousCommands,
wellName,
pipetteName
),
labware: getLabwareName(robotSideAnalysis, labwareId),
labware_location: displayLocation,
})
Expand All @@ -126,6 +141,10 @@ export const PipettingCommandText = ({
const { flowRate } = command.params
return t('blowout_in_place', { flow_rate: flowRate })
}
case 'aspirateInPlace': {

Check failure on line 144 in app/src/organisms/CommandText/PipettingCommandText.tsx

View workflow job for this annotation

GitHub Actions / js checks

Type '"aspirateInPlace"' is not comparable to type '"blowout" | "dropTip" | "pickUpTip" | "aspirate" | "blowOutInPlace" | "configureForVolume" | "dispenseInPlace" | "dispense" | "dropTipInPlace" | "prepareToAspirate" | "touchTip"'.
const { flowRate, volume } = command.params

Check failure on line 145 in app/src/organisms/CommandText/PipettingCommandText.tsx

View workflow job for this annotation

GitHub Actions / js checks

Property 'params' does not exist on type 'never'.
return t('aspirate_in_place', { volume, flow_rate: flowRate })
}
default: {
console.warn(
'PipettingCommandText encountered a command with an unrecognized commandType: ',
Expand Down

0 comments on commit 2ff50b7

Please sign in to comment.