Skip to content

Commit 4dfd608

Browse files
authored
fix(app): fix slot validation on ODD location conflict check to account 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.
1 parent d83c4e6 commit 4dfd608

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/pages/Protocols/hooks/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export const useRequiredProtocolHardwareFromAnalysis = (
142142
hasSlotConflict: deckConfig.some(
143143
({ cutoutId, cutoutFixtureId }) =>
144144
cutoutId === getCutoutIdForSlotName(location.slotName, deckDef) &&
145-
cutoutFixtureId !== getCutoutFixtureIdsForModuleModel(model)[0]
145+
!getCutoutFixtureIdsForModuleModel(model).includes(cutoutFixtureId)
146146
),
147147
}
148148
})

0 commit comments

Comments
 (0)