File tree 2 files changed +7
-11
lines changed
protocol-designer/src/pages/Designer/DeckSetup
2 files changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -385,7 +385,7 @@ export function LabwareTools(props: LabwareToolsProps): JSX.Element {
385
385
/>
386
386
387
387
{ uri === selectedLabwareDefUri &&
388
- getLabwareCompatibleWithAdapter ( loadName )
388
+ getLabwareCompatibleWithAdapter ( defs , loadName )
389
389
?. length > 0 && (
390
390
< ListButtonAccordionContainer
391
391
id = { `nestedAccordionContainer_${ loadName } ` }
@@ -435,12 +435,10 @@ export function LabwareTools(props: LabwareToolsProps): JSX.Element {
435
435
)
436
436
}
437
437
)
438
- : [
439
- ...getLabwareCompatibleWithAdapter (
440
- loadName
441
- ) ,
442
- ...Object . keys ( customLabwareDefs ) ,
443
- ] . map ( nestedDefUri => {
438
+ : getLabwareCompatibleWithAdapter (
439
+ { ...defs , ...customLabwareDefs } ,
440
+ loadName
441
+ ) . map ( nestedDefUri => {
444
442
const nestedDef =
445
443
defs [ nestedDefUri ] ??
446
444
customLabwareDefs [ nestedDefUri ]
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ import {
14
14
getModuleType ,
15
15
} from '@opentrons/shared-data'
16
16
17
- import { getOnlyLatestDefs } from '../../../labware-defs'
18
17
import { getStagingAreaAddressableAreas } from '../../../utils'
19
18
import {
20
19
FLEX_MODULE_MODELS ,
@@ -33,6 +32,7 @@ import type {
33
32
ModuleModel ,
34
33
RobotType ,
35
34
} from '@opentrons/shared-data'
35
+ import type { LabwareDefByDefURI } from '../../../labware-defs'
36
36
import type {
37
37
AllTemporalPropertiesForTimelineFrame ,
38
38
InitialDeckSetup ,
@@ -132,14 +132,12 @@ export const getLabwareIsRecommended = (
132
132
}
133
133
134
134
export const getLabwareCompatibleWithAdapter = (
135
+ defs : LabwareDefByDefURI ,
135
136
adapterLoadName ?: string
136
137
) : string [ ] => {
137
- const defs = getOnlyLatestDefs ( )
138
-
139
138
if ( adapterLoadName == null ) {
140
139
return [ ]
141
140
}
142
-
143
141
return Object . entries ( defs )
144
142
. filter (
145
143
( [ , { stackingOffsetWithLabware } ] ) =>
You can’t perform that action at this time.
0 commit comments