Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix e2e tests
  • Loading branch information
youknowriad committed Nov 9, 2018
commit c89b8800f0464e1439e134fc00083670aa8bb4d5
3 changes: 2 additions & 1 deletion packages/editor/src/components/block-switcher/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ export default compose(
const { getBlockStyles } = select( 'core/blocks' );
const rootClientId = getBlockRootClientId( first( castArray( clientIds ) ) );
const blocks = getBlocksByClientId( clientIds );
const styles = blocks && blocks.length === 1 && getBlockStyles( blocks[ 0 ].name );
const firstBlock = blocks && blocks.length === 1 ? blocks[ 0 ] : null;
const styles = firstBlock && getBlockStyles( firstBlock.name );
return {
blocks,
inserterItems: getInserterItems( rootClientId ),
Expand Down