Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(app): fix MoveInterventionModal labware begin location not updating properly #16307

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading