Skip to content

Commit

Permalink
Remove misleading console.log() statements
Browse files Browse the repository at this point in the history
  • Loading branch information
ockham committed Jul 26, 2023
1 parent ca1bafc commit 4eab92c
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions packages/block-editor/src/hooks/auto-inserting-blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@ import { __ } from '@wordpress/i18n';
import { addFilter } from '@wordpress/hooks';
import { PanelBody } from '@wordpress/components';
import { createHigherOrderComponent } from '@wordpress/compose';
import { store as blocksStore } from '@wordpress/blocks';
import { useSelect } from '@wordpress/data';
// import { store as blocksStore } from '@wordpress/blocks';
// import { useSelect } from '@wordpress/data';

/**
* Internal dependencies
*/
import { InspectorControls } from '../components';

function AutoInsertingBlocksControl() {
const blocks = useSelect( ( select ) => {
const { getBlockTypes } = select( blocksStore );
return getBlockTypes();
}, [] );
console.log( blocks );
// const blocks = useSelect( ( select ) => {
// const { getBlockTypes } = select( blocksStore );
// return getBlockTypes();
// }, [] );

return (
<InspectorControls>
<PanelBody
Expand All @@ -32,9 +32,6 @@ function AutoInsertingBlocksControl() {
export const withAutoInsertingBlocks = createHigherOrderComponent(
( BlockEdit ) => {
return ( props ) => {
//const blockName = props.name;
//console.log( blockName );

const blockEdit = <BlockEdit key="edit" { ...props } />;
return (
<>
Expand Down

0 comments on commit 4eab92c

Please sign in to comment.