From fd9ffe182770cc9c656eb239bd1e829e5ed5c613 Mon Sep 17 00:00:00 2001 From: Jamey Huffnagle Date: Thu, 19 Sep 2024 16:43:01 -0400 Subject: [PATCH] fix(app): fix MoveInterventionModal labware begin location not updating properly (#16307) Closes RQA-3216 --- app/src/organisms/InterventionModal/index.tsx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) 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) {