From 1be2ee154d19466d823b708c30cf4e9bb9238e47 Mon Sep 17 00:00:00 2001
From: Malavika Koppula <mkreddy1110@gmail.com>
Date: Tue, 26 Mar 2024 14:02:46 -0400
Subject: [PATCH] Fixed check

---
 blocks/lead-art-block/features/leadart/default.jsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/blocks/lead-art-block/features/leadart/default.jsx b/blocks/lead-art-block/features/leadart/default.jsx
index 4ebba9f2d..672389033 100644
--- a/blocks/lead-art-block/features/leadart/default.jsx
+++ b/blocks/lead-art-block/features/leadart/default.jsx
@@ -263,7 +263,7 @@ export const LeadArtPresentation = (props) => {
 	const leadArtContent = getLeadArtContent(lead_art);
 
 	useEffect(() => {
-		if(leadArtContent.type === "image"){
+		if(leadArtContent?.type === "image"){
 			if (document.fullscreenEnabled) {
 				document.addEventListener("fullscreenchange", () => {
 					if (!document.fullscreenElement) {
@@ -279,7 +279,7 @@ export const LeadArtPresentation = (props) => {
 			}
 		}
 	}, [leadArtContent]);
-	
+
 	if (leadArtContent) {
 		return <div className={BLOCK_CLASS_NAME}>{leadArtContent}</div>;
 	}