File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
protocol-designer/src/pages/Designer Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -246,8 +246,11 @@ const getNickname = (
246
246
t : any
247
247
) : string => {
248
248
const { modules } = activeDeckSetup
249
- const stack = activeDeckSetup . labware [ labwareId ] . stack
250
- const latestSlot = resolveSlotLocation ( modules , stack , robotType )
249
+ const stack = activeDeckSetup . labware [ labwareId ] ?. stack
250
+ const latestSlot =
251
+ stack != null
252
+ ? resolveSlotLocation ( modules , stack , robotType )
253
+ : 'unknown slot'
251
254
const name = nicknamesById [ labwareId ]
252
255
let nickName : string = name
253
256
if ( latestSlot != null && latestSlot !== 'offDeck' ) {
@@ -275,7 +278,7 @@ export const useLabwareDropdownOptions = (
275
278
labwareId : string
276
279
) : DropdownOption [ ] => {
277
280
const deckSlot = getSlotInLocationStack (
278
- activeDeckSetup . labware [ labwareId ] . stack
281
+ activeDeckSetup . labware [ labwareId ] ? .stack
279
282
)
280
283
const isLabwareInWasteChute = deckSlot === 'gripperWasteChute'
281
284
You can’t perform that action at this time.
0 commit comments