Skip to content

Commit

Permalink
Add conditional in block
Browse files Browse the repository at this point in the history
  • Loading branch information
SantosGuillamot committed May 21, 2024
1 parent 811d83c commit aa0ad3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-editor/src/store/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export const updateBlockAttributes =
const keptAttributes = { ...attributes };
for ( const clientId of clientIds ) {
const block = registry.select( STORE_NAME ).getBlock( clientId );
const bindings = block.attributes?.metadata?.bindings;
const bindings = block?.attributes?.metadata?.bindings;

if ( ! bindings ) {
continue;
Expand Down

0 comments on commit aa0ad3e

Please sign in to comment.