Skip to content

Commit

Permalink
fix: handle temporal coverage undefined properties
Browse files Browse the repository at this point in the history
  • Loading branch information
candicecz committed Jan 24, 2024
1 parent 86e08d6 commit 6da52a7
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,9 @@ const SpatiotemporalCoverage: React.FC<SpatiotemporalCoverageProps> = ({
Temporal Coverage
</Text>
{/* Start */}
{temporalCoverage?.name && <Text>{temporalCoverage.name}</Text>}
{temporalCoverage?.temporalInterval?.name && (
<Text>{temporalCoverage?.temporalInterval?.name}</Text>
)}
{temporalCoverage?.temporalInterval?.startDate && (
<Text>
<Text as='span' fontWeight='medium'>
Expand Down

0 comments on commit 6da52a7

Please sign in to comment.