Skip to content

Commit

Permalink
nullsafe array index access (#12362)
Browse files Browse the repository at this point in the history
### Summary & Motivation

This should address an issue where sensors without any targets crash.

### How I Tested These Changes

:eyes:
  • Loading branch information
salazarm committed Feb 15, 2023
1 parent 9732826 commit b573daa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export const SensorDetails: React.FC<{
currentCursor={cursor || ''}
name={sensor.name}
repoAddress={repoAddress}
jobName={sensor.targets?.[0].pipelineName || ''}
jobName={sensor.targets?.[0]?.pipelineName || ''}
/>
<MetadataTableWIP>
<tbody>
Expand Down

0 comments on commit b573daa

Please sign in to comment.