Skip to content

Commit

Permalink
adjust logic
Browse files Browse the repository at this point in the history
  • Loading branch information
jerader committed Jan 17, 2025
1 parent 80ca506 commit 80f1427
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions protocol-designer/src/ui/labware/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,13 @@ export function getLabwareLatestSlotFromCurrentStepIndex(
const hasWasteChute = getHasWasteChute(additionalEquipmentOnDeck)

// latest moveLabware step related to labwareId at given index
const moveLabwareStepId = filteredSavedStepFormIds.find(
id =>
savedStepForms[id].stepType === 'moveLabware' &&
savedStepForms[id].labware === labwareId
)
const moveLabwareStepId = filteredSavedStepFormIds
.filter(
id =>
savedStepForms[id].stepType === 'moveLabware' &&
savedStepForms[id].labware === labwareId
)
.pop()
const moveLabwareStep =
moveLabwareStepId != null ? savedStepForms[moveLabwareStepId] : null

Expand Down

0 comments on commit 80f1427

Please sign in to comment.