diff --git a/packages/block-editor/src/store/actions.js b/packages/block-editor/src/store/actions.js index 6e65ce5101332a..78df2e6957eb3c 100644 --- a/packages/block-editor/src/store/actions.js +++ b/packages/block-editor/src/store/actions.js @@ -213,9 +213,9 @@ export const updateBlockAttributes = } ); if ( updatesBySource.size ) { - const context = registry - .select( STORE_NAME ) - .getBlockContext( clientId ); + const context = unlock( + registry.select( STORE_NAME ) + ).getBlockContext( clientId ); for ( const [ source, boundAttributes ] of updatesBySource ) { if ( source.setValues ) { source.setValues( { diff --git a/packages/block-editor/src/store/selectors.js b/packages/block-editor/src/store/selectors.js index 4ac15ddc89f382..38374864a62bb3 100644 --- a/packages/block-editor/src/store/selectors.js +++ b/packages/block-editor/src/store/selectors.js @@ -146,7 +146,9 @@ export const getBlockAttributes = createRegistrySelector( isProcessingBindings = true; const newAttributes = { ...blockAttributes }; - const context = select( STORE_NAME ).getBlockContext( clientId ); + const context = unlock( select( STORE_NAME ) ).getBlockContext( + clientId + ); const sources = unlock( select( blocksStore ) ).getAllBlockBindingsSources();