Skip to content

Commit

Permalink
fix(components): add 4th slot column label for magblock + staging area (
Browse files Browse the repository at this point in the history
#16138)

Add condition for showing 4th slot column label for magnetic block with
staging area fixture

Closes RQA-2838
  • Loading branch information
ncdiehl11 authored Aug 28, 2024
1 parent 9d2fb6a commit 2d34885
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion components/src/hardware-sim/DeckConfigurator/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ export function DeckConfigurator(props: DeckConfiguratorProps): JSX.Element {
const absorbanceReaderFixtures = deckConfig.filter(
({ cutoutFixtureId }) => cutoutFixtureId === ABSORBANCE_READER_V1_FIXTURE
)
const magneticBlockStagingAreaFixtures = deckConfig.filter(
({ cutoutFixtureId }) =>
cutoutFixtureId === STAGING_AREA_SLOT_WITH_MAGNETIC_BLOCK_V1_FIXTURE
)

return (
<RobotCoordinateSpace
Expand Down Expand Up @@ -261,7 +265,8 @@ export function DeckConfigurator(props: DeckConfiguratorProps): JSX.Element {
color={darkFill}
show4thColumn={
stagingAreaFixtures.length > 0 ||
wasteChuteStagingAreaFixtures.length > 0
wasteChuteStagingAreaFixtures.length > 0 ||
magneticBlockStagingAreaFixtures.length > 0
}
/>
{children}
Expand Down

0 comments on commit 2d34885

Please sign in to comment.