diff --git a/packages/block-editor/src/components/block-inspector/index.js b/packages/block-editor/src/components/block-inspector/index.js index 178fffc611a52..e9a0e0b85bdc7 100644 --- a/packages/block-editor/src/components/block-inspector/index.js +++ b/packages/block-editor/src/components/block-inspector/index.js @@ -144,7 +144,6 @@ const BlockInspector = ( { showNoBlockSelectedMessage = true } ) => { getSelectedBlockCount, getBlockName, __unstableGetContentLockingParent, - getTemplateLock, } = select( blockEditorStore ); const _selectedBlockClientId = getSelectedBlockClientId(); @@ -158,12 +157,9 @@ const BlockInspector = ( { showNoBlockSelectedMessage = true } ) => { selectedBlockClientId: _selectedBlockClientId, selectedBlockName: _selectedBlockName, blockType: _blockType, - topLevelLockedBlock: - getTemplateLock( _selectedBlockClientId ) === 'contentOnly' - ? _selectedBlockClientId - : __unstableGetContentLockingParent( - _selectedBlockClientId - ), + topLevelLockedBlock: __unstableGetContentLockingParent( + _selectedBlockClientId + ), }; }, [] );