Skip to content

Commit

Permalink
rollback change for desktop
Browse files Browse the repository at this point in the history
  • Loading branch information
ncdiehl11 committed May 16, 2024
1 parent a2909e3 commit f5fdbae
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions app/src/organisms/RunProgressMeter/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down Expand Up @@ -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 =
Expand Down

0 comments on commit f5fdbae

Please sign in to comment.