Skip to content

Commit

Permalink
fix(app): Add absorbance files to file count on protocol run item
Browse files Browse the repository at this point in the history
  • Loading branch information
smb2268 committed Nov 21, 2024
1 parent 222c963 commit 6f5d438
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/src/organisms/Desktop/Devices/HistoricalProtocolRun.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,15 @@ export function HistoricalProtocolRun(
const { t } = useTranslation('run_details')
const { run, protocolName, robotIsBusy, robotName, protocolKey } = props
const [drawerOpen, setDrawerOpen] = useState(false)
const countRunDataFiles =
let countRunDataFiles =
'runTimeParameters' in run
? run?.runTimeParameters.filter(
parameter => parameter.type === 'csv_file'
).length
: 0
if ('outputFileIds' in run) {
countRunDataFiles += run.outputFileIds.length
}
const runStatus = run.status
const runDisplayName = formatTimestamp(run.createdAt)
let duration = EMPTY_TIMESTAMP
Expand Down

0 comments on commit 6f5d438

Please sign in to comment.