From f5fdbae4548bfcc97e0436811905267c63b2007a Mon Sep 17 00:00:00 2001 From: ncdiehl11 Date: Thu, 16 May 2024 18:24:47 -0400 Subject: [PATCH] rollback change for desktop --- app/src/organisms/RunProgressMeter/index.tsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/src/organisms/RunProgressMeter/index.tsx b/app/src/organisms/RunProgressMeter/index.tsx index 47838a0bb47..4c7c92f5bd8 100644 --- a/app/src/organisms/RunProgressMeter/index.tsx +++ b/app/src/organisms/RunProgressMeter/index.tsx @@ -42,10 +42,7 @@ import { ProgressBar } from '../../atoms/ProgressBar' import { useDownloadRunLog, useRobotType } from '../Devices/hooks' import { InterventionTicks } from './InterventionTicks' import { isInterventionCommand } from '../InterventionModal/utils' -import { - useNotifyLastRunCommand, - useNotifyRunQuery, -} from '../../resources/runs' +import { useNotifyRunQuery } from '../../resources/runs' import type { RunStatus } from '@opentrons/api-client' @@ -82,7 +79,7 @@ export function RunProgressMeter(props: RunProgressMeterProps): JSX.Element { pageLength: 1, }) const analysisCommands = analysis?.commands ?? [] - const lastRunCommand = useNotifyLastRunCommand(runId) + const lastRunCommand = allCommandsQueryData?.data[0] ?? null const runCommandsLength = allCommandsQueryData?.meta.totalLength const downloadIsDisabled =