diff --git a/packages/block-library/src/query/edit/index.js b/packages/block-library/src/query/edit/index.js index a75159fcdc445..80c160ca83bb0 100644 --- a/packages/block-library/src/query/edit/index.js +++ b/packages/block-library/src/query/edit/index.js @@ -30,13 +30,8 @@ import { getFirstQueryClientIdFromBlocks } from '../utils'; const TEMPLATE = [ [ 'core/post-template' ] ]; function ResetQueryLoopMenuItem( { clientId, isSelected } ) { - const rootClientId = useSelect( - ( select ) => - select( blockEditorStore ).getBlockRootClientId( clientId ), - [ clientId ] - ); const { replaceInnerBlocks } = useDispatch( blockEditorStore ); - if ( ! isSelected || rootClientId ) { + if ( ! isSelected ) { return null; } return (