Skip to content

Commit

Permalink
Improve the performance
Browse files Browse the repository at this point in the history
  • Loading branch information
adamziel committed May 14, 2020
1 parent 0771607 commit 2366592
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-editor/src/components/block-styles/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 } ) {
Expand Down

0 comments on commit 2366592

Please sign in to comment.