Skip to content

Commit

Permalink
fix crash of page after removal of a slate block and saving edit page
Browse files Browse the repository at this point in the history
  • Loading branch information
ichim-david committed Apr 3, 2024
1 parent c70bb80 commit a917cdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Blocks/Hero/Edit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit a917cdc

Please sign in to comment.