diff --git a/packages/block-editor/src/components/inserter/index.js b/packages/block-editor/src/components/inserter/index.js index 48a28517ebde1b..4b842b4b7b3c59 100644 --- a/packages/block-editor/src/components/inserter/index.js +++ b/packages/block-editor/src/components/inserter/index.js @@ -83,7 +83,7 @@ class Inserter extends Component { } render() { - const { position, title } = this.props; + const { position } = this.props; return ( @@ -102,18 +102,9 @@ class Inserter extends Component { export default compose( [ withSelect( ( select, { rootClientId } ) => { - const { - hasInserterItems, - } = select( 'core/block-editor' ); - - // The title should be removed from the inserter - // or replaced by a prop passed to the inserter. - const { - getEditedPostAttribute, - } = select( 'core/editor' ); + const { hasInserterItems } = select( 'core/block-editor' ); return { - title: getEditedPostAttribute( 'title' ), hasItems: hasInserterItems( rootClientId ), }; } ),