Skip to content

Commit

Permalink
remove temp filtered labware list from lpc
Browse files Browse the repository at this point in the history
  • Loading branch information
smb2268 committed Oct 13, 2024
1 parent 1294333 commit 1589648
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions app/src/organisms/LabwarePositionCheck/useLaunchLPC.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@ import { getLabwareDefinitionsFromCommands } from '/app/molecules/Command/utils/

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

const filteredLabware = [
'opentrons_tough_pcr_auto_sealing_lid',
'opentrons_flex_lid_absorbance_plate_reader_module',
]

export function useLaunchLPC(
runId: string,
robotType: RobotType,
Expand Down Expand Up @@ -67,11 +62,10 @@ export function useLaunchLPC(
getLabwareDefinitionsFromCommands(
mostRecentAnalysis?.commands ?? []
).map(def => {
if (!filteredLabware.includes(def.parameters.loadName))
createLabwareDefinition({
maintenanceRunId: maintenanceRun?.data?.id,
labwareDef: def,
})
createLabwareDefinition({
maintenanceRunId: maintenanceRun?.data?.id,
labwareDef: def,
})
})
).then(() => {
setMaintenanceRunId(maintenanceRun.data.id)
Expand Down

0 comments on commit 1589648

Please sign in to comment.