Skip to content

Commit

Permalink
restrict ot-2
Browse files Browse the repository at this point in the history
g
  • Loading branch information
jerader committed Jan 17, 2025
1 parent 5625bf7 commit 74eafe1
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { useSelector } from 'react-redux'
import flatMap from 'lodash/flatMap'
import { ProtocolTimelineScrubber } from '@opentrons/components'
import { OT2_ROBOT_TYPE } from '@opentrons/shared-data'
import {
getInitialRobotState,
getRobotStateTimeline,
Expand All @@ -26,7 +27,7 @@ import type {
RunTimeCommand,
} from '@opentrons/shared-data'

export function ScrubberContainer(): JSX.Element {
export function ScrubberContainer(): JSX.Element | null {
const robotType = useSelector(getRobotType)
const labwareNickNames = useSelector(getLabwareNicknamesById)
const robotStateTimeline = useSelector(getRobotStateTimeline)
Expand All @@ -36,6 +37,10 @@ export function ScrubberContainer(): JSX.Element {
const invariantContext = useSelector(getInvariantContext)
const initialDeckSetup = useSelector(getInitialDeckSetup)

if (robotType === OT2_ROBOT_TYPE) {
return null
}

const { pipetteEntities, labwareEntities, moduleEntities } = invariantContext
const {
pipettes,
Expand Down

0 comments on commit 74eafe1

Please sign in to comment.