Skip to content

Commit

Permalink
fix(app): fix slot validation on ODD location conflict check to accou…
Browse files Browse the repository at this point in the history
…nt for thermocycler occupying 2 slots (#15239)

Ensure slot conflict checking accounts for the thermocycler being comprised of two fixtures in the deck config when validating the cutout fixtures.
  • Loading branch information
CaseyBatten authored May 21, 2024
1 parent d83c4e6 commit 4dfd608
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/pages/Protocols/hooks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export const useRequiredProtocolHardwareFromAnalysis = (
hasSlotConflict: deckConfig.some(
({ cutoutId, cutoutFixtureId }) =>
cutoutId === getCutoutIdForSlotName(location.slotName, deckDef) &&
cutoutFixtureId !== getCutoutFixtureIdsForModuleModel(model)[0]
!getCutoutFixtureIdsForModuleModel(model).includes(cutoutFixtureId)
),
}
})
Expand Down

0 comments on commit 4dfd608

Please sign in to comment.