Skip to content

Commit 76cbb52

Browse files
authored
fix(app): clear intervention modal if run is finishing (#15209)
Closes RQA-2730 Remove InterventionModal if run is finishing
1 parent a84f58a commit 76cbb52

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/src/pages/RunningProtocol/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import {
2525
RUN_STATUS_STOP_REQUESTED,
2626
RUN_STATUS_BLOCKED_BY_OPEN_DOOR,
2727
RUN_STATUS_AWAITING_RECOVERY,
28+
RUN_STATUS_FINISHING,
2829
} from '@opentrons/api-client'
2930

3031
import { useFeatureFlag } from '../../redux/config'
@@ -203,7 +204,8 @@ export function RunningProtocol(): JSX.Element {
203204
{interventionModalCommandKey != null &&
204205
runRecord?.data != null &&
205206
lastRunCommand != null &&
206-
isInterventionCommand(lastRunCommand) ? (
207+
isInterventionCommand(lastRunCommand) &&
208+
runStatus !== RUN_STATUS_FINISHING ? (
207209
<InterventionModal
208210
robotName={robotName}
209211
command={lastRunCommand}

0 commit comments

Comments
 (0)