Skip to content

Commit

Permalink
fix(app): fix MoveInterventionModal labware begin location not updati…
Browse files Browse the repository at this point in the history
…ng properly (#16307)

Closes RQA-3216
  • Loading branch information
mjhuff authored Sep 19, 2024
1 parent 59be09e commit fd9ffe1
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions app/src/organisms/InterventionModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ export function InterventionModal({
const isOnDevice = useSelector(getIsOnDevice)

const robotType = useRobotType(robotName)
const childContent = React.useMemo(() => {
// TODO(jh 09-19-24): Make this into its own component.
const childContent = (() => {
switch (command.commandType) {
case 'waitForResume':
case 'pause': // legacy pause command
Expand All @@ -136,12 +137,7 @@ export function InterventionModal({
)
return null
}
}, [
command.id,
analysis?.status,
run.labware.map(l => l.id).join(),
run.modules.map(m => m.id).join(),
])
})()

const { iconName, headerTitle, headerTitleOnDevice } = (() => {
switch (command.commandType) {
Expand Down

0 comments on commit fd9ffe1

Please sign in to comment.