From 0c7a7c3765a28fce8f212baab3eba11c32e7ac95 Mon Sep 17 00:00:00 2001 From: ntsekouras Date: Thu, 17 Dec 2020 17:38:53 +0200 Subject: [PATCH] blockTitle extra safeguard that existed before --- packages/block-editor/src/components/block-title/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/block-editor/src/components/block-title/index.js b/packages/block-editor/src/components/block-title/index.js index d99bd1e83170e..c7701527e07a0 100644 --- a/packages/block-editor/src/components/block-title/index.js +++ b/packages/block-editor/src/components/block-title/index.js @@ -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