Skip to content

Commit

Permalink
blockTitle extra safeguard that existed before
Browse files Browse the repository at this point in the history
  • Loading branch information
ntsekouras committed Dec 18, 2020
1 parent 410fc74 commit 8501b34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-editor/src/components/block-title/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default function BlockTitle( { clientId } ) {
);

const blockInformation = useBlockDisplayInformation( clientId );
if ( ! blockInformation ) return null;
if ( ! name || ! blockInformation ) return null;
const blockType = getBlockType( name );
const label = getBlockLabel( blockType, attributes );
// Label will fallback to the title if no label is defined for the
Expand Down

0 comments on commit 8501b34

Please sign in to comment.