Skip to content

Commit

Permalink
Fix ts and linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
smb2268 committed Oct 21, 2024
1 parent 811a7ee commit 53d8f40
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export function HistoricalProtocolRunDrawer(
return acc
}, [])
: []
if (run.outputFileIds?.length > 0) {
if ('outputFileIds' in run && run.outputFileIds.length > 0) {
runDataFileIds.push(...run.outputFileIds)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,13 @@ export function ProtocolRunHeader(
runErrors={runErrors}
runHeaderModalContainerUtils={runHeaderModalContainerUtils}
hasDownloadableFiles={
runRecord?.data?.outputFileIds != null &&
runRecord?.data != null &&
'outputFileIds' in runRecord.data &&
runRecord.data.outputFileIds.length > 0
}
deviceDetailsLink={() => navigate(`/devices/${robotName}`)}
deviceDetailsLink={() => {
navigate(`/devices/${robotName}`)
}}
{...props}
/>
<RunHeaderContent
Expand Down

0 comments on commit 53d8f40

Please sign in to comment.