diff --git a/app/src/organisms/InterventionModal/index.tsx b/app/src/organisms/InterventionModal/index.tsx index 6c3002ce26b..271868627a0 100644 --- a/app/src/organisms/InterventionModal/index.tsx +++ b/app/src/organisms/InterventionModal/index.tsx @@ -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 @@ -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) {