Skip to content

Commit 9bced85

Browse files
authored
fix(protocol-designer): allow custom labware on adapters (#17217)
closes RQA-3779
1 parent 7fa1309 commit 9bced85

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

protocol-designer/src/pages/Designer/DeckSetup/LabwareTools.tsx

+9-4
Original file line numberDiff line numberDiff line change
@@ -430,10 +430,15 @@ export function LabwareTools(props: LabwareToolsProps): JSX.Element {
430430
)
431431
}
432432
)
433-
: getLabwareCompatibleWithAdapter(
434-
loadName
435-
).map(nestedDefUri => {
436-
const nestedDef = defs[nestedDefUri]
433+
: [
434+
...getLabwareCompatibleWithAdapter(
435+
loadName
436+
),
437+
...Object.keys(customLabwareDefs),
438+
].map(nestedDefUri => {
439+
const nestedDef =
440+
defs[nestedDefUri] ??
441+
customLabwareDefs[nestedDefUri]
437442

438443
return (
439444
<ListButtonRadioButton

0 commit comments

Comments
 (0)