From 65f08b77315bb4942975d8a5099d4eb563889720 Mon Sep 17 00:00:00 2001 From: Ben Dwyer Date: Tue, 28 Jan 2020 13:02:29 +0000 Subject: [PATCH] don't try to render the style selector if there's no valid block --- extensions/shared/components/block-styles-selector/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/shared/components/block-styles-selector/index.js b/extensions/shared/components/block-styles-selector/index.js index fa0bac39ac854..b798f76a2d7d6 100644 --- a/extensions/shared/components/block-styles-selector/index.js +++ b/extensions/shared/components/block-styles-selector/index.js @@ -79,7 +79,7 @@ export default function BlockStylesSelector( { tabIndex="0" aria-label={ styleOption.label } > - { useSelect && ( + { useSelect && block && (