From 6da52a7f7021ade502f8b3015521e0d1170cd1dd Mon Sep 17 00:00:00 2001 From: candicecz Date: Wed, 24 Jan 2024 14:59:57 -0500 Subject: [PATCH] fix: handle temporal coverage undefined properties --- .../resource-sections/components/overview/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/resource-sections/components/overview/index.tsx b/src/components/resource-sections/components/overview/index.tsx index e0081512..bc81b321 100644 --- a/src/components/resource-sections/components/overview/index.tsx +++ b/src/components/resource-sections/components/overview/index.tsx @@ -213,7 +213,9 @@ const SpatiotemporalCoverage: React.FC = ({ Temporal Coverage {/* Start */} - {temporalCoverage?.name && {temporalCoverage.name}} + {temporalCoverage?.temporalInterval?.name && ( + {temporalCoverage?.temporalInterval?.name} + )} {temporalCoverage?.temporalInterval?.startDate && (