Skip to content

Commit

Permalink
Fix setValues
Browse files Browse the repository at this point in the history
  • Loading branch information
SantosGuillamot committed Sep 28, 2024
1 parent 3a27985 commit b062954
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/block-editor/src/hooks/use-bindings-attributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ export const withBlockBindingSupport = createHigherOrderComponent(

const _setAttributes = useCallback(
( nextAttributes ) => {
registry.batch( ( select, dispatch ) => {
registry.batch( () => {
if ( ! blockBindings ) {
setAttributes( nextAttributes );
return;
Expand Down Expand Up @@ -242,8 +242,8 @@ export const withBlockBindingSupport = createHigherOrderComponent(
bindings,
] of blockBindingsBySource ) {
source.setValues( {
select,
dispatch,
select: registry.select,
dispatch: registry.dispatch,
context: updatedContext,
clientId,
bindings,
Expand Down

0 comments on commit b062954

Please sign in to comment.