diff --git a/packages/block-editor/src/hooks/block-bindings.js b/packages/block-editor/src/hooks/block-bindings.js
index 87ab4e36321028..ed3f0b68186980 100644
--- a/packages/block-editor/src/hooks/block-bindings.js
+++ b/packages/block-editor/src/hooks/block-bindings.js
@@ -29,7 +29,6 @@ import { useBlockBindingsUtils } from '../utils/block-bindings';
import { unlock } from '../lock-unlock';
import InspectorControls from '../components/inspector-controls';
import BlockContext from '../components/block-context';
-import { useBlockEditContext } from '../components/block-edit';
import { store as blockEditorStore } from '../store';
const { Menu } = unlock( componentsPrivateApis );
@@ -55,34 +54,19 @@ function BlockBindingsPanelMenuContent( {
sources,
onOpenModal,
} ) {
- const { clientId } = useBlockEditContext();
const { updateBlockBindings } = useBlockBindingsUtils();
const isMobile = useViewportMatch( 'medium', '<' );
const blockContext = useContext( BlockContext );
- const { attributeType, select } = useSelect(
- ( _select ) => {
- const { name: blockName } =
- _select( blockEditorStore ).getBlock( clientId );
- const _attributeType =
- getBlockType( blockName ).attributes?.[ attribute ]?.type;
- return {
- attributeType:
- _attributeType === 'rich-text' ? 'string' : _attributeType,
- select: _select,
- };
- },
- [ clientId, attribute ]
- );
+ const { select } = useSelect( ( _select ) => {
+ return {
+ select: _select,
+ };
+ }, [] );
return (