File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
app/src/organisms/InterventionModal Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,8 @@ export function InterventionModal({
112
112
const isOnDevice = useSelector ( getIsOnDevice )
113
113
114
114
const robotType = useRobotType ( robotName )
115
- const childContent = React . useMemo ( ( ) => {
115
+ // TODO(jh 09-19-24): Make this into its own component.
116
+ const childContent = ( ( ) => {
116
117
switch ( command . commandType ) {
117
118
case 'waitForResume' :
118
119
case 'pause' : // legacy pause command
@@ -136,12 +137,7 @@ export function InterventionModal({
136
137
)
137
138
return null
138
139
}
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
+ } ) ( )
145
141
146
142
const { iconName, headerTitle, headerTitleOnDevice } = ( ( ) => {
147
143
switch ( command . commandType ) {
You can’t perform that action at this time.
0 commit comments