Skip to content

Commit

Permalink
don't try to render the style selector if there's no valid block
Browse files Browse the repository at this point in the history
  • Loading branch information
scruffian committed Jan 28, 2020
1 parent 6ef28c3 commit 65f08b7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default function BlockStylesSelector( {
tabIndex="0"
aria-label={ styleOption.label }
>
{ useSelect && (
{ useSelect && block && (
<StylePreviewComponent
blockName={ block.name }
styleOption={ styleOption }
Expand Down

0 comments on commit 65f08b7

Please sign in to comment.