Skip to content

Commit

Permalink
fix(app): fix manual move to location with module (#17283)
Browse files Browse the repository at this point in the history
Closes RQA-3839
  • Loading branch information
mjhuff authored Jan 15, 2025
1 parent 3778b65 commit 7bc38f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion components/src/hardware-sim/Deck/MoveLabwareOnDeck.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const getModulePosition = (
)
if (modSlot == null) return null

const modPosition = getPositionFromSlotId(loadedModule.id, deckDef)
const modPosition = getPositionFromSlotId(modSlot.id, deckDef)
if (modPosition == null) return null
const [modX, modY] = modPosition

Expand Down
1 change: 1 addition & 0 deletions shared-data/js/fixtures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ export const FLEX_SINGLE_SLOT_BY_CUTOUT_ID: { [CutoutId: string]: string } = {
cutoutD3: 'D3',
}

// TODO(jh 01-15-25): Instead of typing slotId as `string`, type it as `AddressableAreaName`.
// returns the position associated with a slot id
export function getPositionFromSlotId(
slotId: string,
Expand Down

0 comments on commit 7bc38f8

Please sign in to comment.