File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -708,6 +708,7 @@ export interface TimelineFrame {
708708 pipettes : {
709709 [ pipetteId : string ] : {
710710 hasTip : boolean
711+ /** TODO: tiprackURI is a misnomer: it's a labwareId, not a URI */
711712 tiprackURI : string | null
712713 }
713714 }
Original file line number Diff line number Diff line change @@ -319,14 +319,10 @@ export const getIsSafePipetteMovement = (args: {
319319 return true
320320 }
321321
322- const tiprackURI = tipState . pipettes [ pipetteId ] ?. tiprackURI
323- const tiprackEntityId =
324- tiprackURI != null
325- ? Object . keys ( labwareEntities ) . find ( lwKey => lwKey . includes ( tiprackURI ) )
326- : null
322+ const tiprackEntityId = tipState . pipettes [ pipetteId ] ?. tiprackURI
327323 const tiprackTipLength =
328324 tiprackEntityId != null
329- ? labwareEntities [ tiprackEntityId ] . def . parameters . tipLength
325+ ? labwareEntities [ tiprackEntityId ] ? .def . parameters . tipLength
330326 : 0
331327 const stagingAreaSlots = Object . values ( stagingAreaEntities ) . map (
332328 stagingArea => stagingArea . location as string
You can’t perform that action at this time.
0 commit comments