diff --git a/src/components/Blocks/Hero/Edit.jsx b/src/components/Blocks/Hero/Edit.jsx index b4b7388..ec5ad7a 100644 --- a/src/components/Blocks/Hero/Edit.jsx +++ b/src/components/Blocks/Hero/Edit.jsx @@ -100,7 +100,7 @@ export default function Edit(props) { className="hero-edit-wrapper" role="presentation" onClick={(e) => { - if (e.target.className.includes('hero')) { + if (e.target?.className?.includes('hero')) { setSelectedBlock(id); setSidebarTab(1); }