File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
protocol-designer/src/components/organisms Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -57,10 +57,16 @@ export function HardwareConfigurator(
57
57
const hasModule = Object . values ( modules ) . some (
58
58
module => module . cutoutId === cutoutId
59
59
)
60
+ // since we are adding cutoutA1 in moduleConfig if
61
+ // there is a TC
62
+ const hasTCAndCutoutA1 =
63
+ Object . values ( modules ) . some (
64
+ module => module . type === THERMOCYCLER_MODULE_TYPE
65
+ ) && cutoutId === 'cutoutA1'
60
66
const hasFixture = Object . values ( fixtures ) . some (
61
67
fixture => fixture . cutoutId === cutoutId
62
68
)
63
- return ! hasModule && ! hasFixture
69
+ return ! hasModule && ! hasFixture && ! hasTCAndCutoutA1
64
70
}
65
71
)
66
72
const moduleConfig : DeckConfiguration = Object . values ( modules ) . flatMap (
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ export const getLabwareCompatibleForEditHardware = (
111
111
} else if ( labwareDefB1 != null ) {
112
112
labwareCompatible = getLabwareIsCompatible ( labwareDefB1 , moduleType )
113
113
} else {
114
- labwareCompatible = false
114
+ labwareCompatible = true
115
115
}
116
116
} else if ( labwareDef != null && moduleType != null ) {
117
117
labwareCompatible = getLabwareIsCompatible ( labwareDef , moduleType )
You can’t perform that action at this time.
0 commit comments