Skip to content

Commit

Permalink
remove tc lids from LPC flow
Browse files Browse the repository at this point in the history
  • Loading branch information
CaseyBatten committed Oct 9, 2024
1 parent 9bcb71d commit b80b2d2
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions app/src/organisms/LabwarePositionCheck/useLaunchLPC.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import { getLabwareDefinitionsFromCommands } from '/app/molecules/Command/utils/

import type { RobotType } from '@opentrons/shared-data'

const filtered_labware = ['opentrons_tough_pcr_auto_sealing_lid']

export function useLaunchLPC(
runId: string,
robotType: RobotType,
Expand Down Expand Up @@ -63,12 +65,13 @@ export function useLaunchLPC(
Promise.all(
getLabwareDefinitionsFromCommands(
mostRecentAnalysis?.commands ?? []
).map(def =>
createLabwareDefinition({
maintenanceRunId: maintenanceRun?.data?.id,
labwareDef: def,
})
)
).map(def => {
if (!filtered_labware.includes(def.parameters.loadName))
createLabwareDefinition({
maintenanceRunId: maintenanceRun?.data?.id,
labwareDef: def,
})
})
).then(() => {
setMaintenanceRunId(maintenanceRun.data.id)
})
Expand Down

0 comments on commit b80b2d2

Please sign in to comment.