Skip to content

Commit fd9ffe1

Browse files
authored
fix(app): fix MoveInterventionModal labware begin location not updating properly (#16307)
Closes RQA-3216
1 parent 59be09e commit fd9ffe1

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

app/src/organisms/InterventionModal/index.tsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ export function InterventionModal({
112112
const isOnDevice = useSelector(getIsOnDevice)
113113

114114
const robotType = useRobotType(robotName)
115-
const childContent = React.useMemo(() => {
115+
// TODO(jh 09-19-24): Make this into its own component.
116+
const childContent = (() => {
116117
switch (command.commandType) {
117118
case 'waitForResume':
118119
case 'pause': // legacy pause command
@@ -136,12 +137,7 @@ export function InterventionModal({
136137
)
137138
return null
138139
}
139-
}, [
140-
command.id,
141-
analysis?.status,
142-
run.labware.map(l => l.id).join(),
143-
run.modules.map(m => m.id).join(),
144-
])
140+
})()
145141

146142
const { iconName, headerTitle, headerTitleOnDevice } = (() => {
147143
switch (command.commandType) {

0 commit comments

Comments
 (0)