File tree Expand file tree Collapse file tree 1 file changed +8
-14
lines changed Expand file tree Collapse file tree 1 file changed +8
-14
lines changed Original file line number Diff line number Diff line change @@ -103,21 +103,15 @@ export function LabwareCardOverflowMenu(
103
103
labwareIds . forEach ( labwareId => {
104
104
dispatch ( deleteContainer ( { labwareId } ) )
105
105
} )
106
- if ( isAdapter ) {
107
- dispatch (
108
- editSlotInfo ( {
109
- adapterDefURI : null ,
110
- } )
111
- )
112
- } else {
113
- dispatch (
114
- editSlotInfo ( {
115
- labwareDefURI : null ,
116
- lidDefURI : null ,
117
- amount : 1 ,
118
- } )
119
- )
106
+ const module = moduleId != null ? deckSetupModules [ moduleId ] : null
107
+ const moduleModel = module ?. model ?? null
108
+ const newSlotInfo = {
109
+ ...( moduleModel != null ? { moduleModel } : { } ) ,
110
+ ...( isAdapter === true
111
+ ? { adapterDefURI : null }
112
+ : { labwareDefURI : null , lidDefURI : null , amount : 1 } ) ,
120
113
}
114
+ dispatch ( editSlotInfo ( newSlotInfo ) )
121
115
}
122
116
const handleConfirmDeleteEntityInUseModal = ( ) : void => {
123
117
labwareIds . forEach ( labwareId => {
You can’t perform that action at this time.
0 commit comments