Skip to content

Commit

Permalink
Rename variable to bindingSource
Browse files Browse the repository at this point in the history
  • Loading branch information
talldan committed May 31, 2024
1 parent bc7502f commit 79e6822
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/block-editor/src/hooks/use-bindings-attributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ function replacePatternOverrideDefaultBindings( blockName, bindings ) {
const bindingsWithDefaults = {};
for ( const attributeName of supportedAttributes ) {
// If the block has mixed binding sources, retain any non pattern override bindings.
const bindingSourceName = bindings[ attributeName ]
const bindingSource = bindings[ attributeName ]
? bindings[ attributeName ]
: { source: 'core/pattern-overrides' };
bindingsWithDefaults[ attributeName ] = bindingSourceName;
bindingsWithDefaults[ attributeName ] = bindingSource;
}

return bindingsWithDefaults;
Expand Down

0 comments on commit 79e6822

Please sign in to comment.