From 236659253db0e5ca7ce33db36a12aa62705f6b83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Zieli=C5=84ski?= Date: Mon, 11 May 2020 16:44:53 +0200 Subject: [PATCH] Improve the performance --- packages/block-editor/src/components/block-styles/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/block-editor/src/components/block-styles/index.js b/packages/block-editor/src/components/block-styles/index.js index 510e73cd4b5ec..6348ce04f480d 100644 --- a/packages/block-editor/src/components/block-styles/index.js +++ b/packages/block-editor/src/components/block-styles/index.js @@ -77,7 +77,7 @@ const useGenericPreviewBlock = ( block, type ) => innerBlocks: type.example.innerBlocks, } ) : cloneBlock( block ), - [ block, type ] + [ type.example ? block.name : block, type ] ); function BlockStyles( { clientId, onSwitch = noop, onHoverClassName = noop } ) {