Skip to content

Commit

Permalink
only show single slot fixtures behind module fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
b-cooper committed Apr 19, 2024
1 parent 73ee626 commit 1ef1dc8
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions components/src/hardware-sim/BaseDeck/BaseDeck.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,12 @@ export function BaseDeck(props: BaseDeckProps): JSX.Element {
fixture.cutoutFixtureId != null &&
(SINGLE_SLOT_FIXTURES.includes(fixture.cutoutFixtureId) ||
// If module fixture is loaded, still visualize singleSlotFixture underneath for consistency
Object.entries(MODULE_FIXTURES_BY_MODEL).reduce<CutoutFixtureId[]>(
(acc, [_model, fixtures]) => [...acc, ...fixtures],
[]
))
Object.entries(MODULE_FIXTURES_BY_MODEL)
.reduce<CutoutFixtureId[]>(
(acc, [_model, fixtures]) => [...acc, ...fixtures],
[]
)
.includes(fixture.cutoutFixtureId))
)
const stagingAreaFixtures = deckConfig.filter(
fixture =>
Expand Down

0 comments on commit 1ef1dc8

Please sign in to comment.