From 027e08d90eb83a3c2dfc06d052d1677f7fed7a10 Mon Sep 17 00:00:00 2001 From: Johannes Klein Date: Tue, 11 Mar 2025 10:31:04 +0100 Subject: [PATCH] Optional access of optional property --- .../ObsDetailsDefaultMode/LocationSection/LocationSection.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/ObsDetailsDefaultMode/LocationSection/LocationSection.tsx b/src/components/ObsDetailsDefaultMode/LocationSection/LocationSection.tsx index 86d6a6237..14224a008 100644 --- a/src/components/ObsDetailsDefaultMode/LocationSection/LocationSection.tsx +++ b/src/components/ObsDetailsDefaultMode/LocationSection/LocationSection.tsx @@ -66,13 +66,13 @@ const LocationSection = ( { /> )} - {observation.obscured && ( + {observation?.obscured && ( - ) } + )} );