Skip to content

Commit

Permalink
fix(app): add null and length check for array (#15799)
Browse files Browse the repository at this point in the history
* fix(app): add null and length check for array
  • Loading branch information
koji authored Jul 25, 2024
1 parent ba7b705 commit 7c31fa7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/src/organisms/Devices/HistoricalProtocolRun.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ export function HistoricalProtocolRun(
>
{protocolName}
</LegacyStyledText>
{enableCsvFile ? (
{enableCsvFile &&
allProtocolDataFiles != null &&
allProtocolDataFiles.length > 0 ? (
<LegacyStyledText
as="p"
width="5%"
Expand Down

0 comments on commit 7c31fa7

Please sign in to comment.