From 79e6822ed7b59117490c1fda30c0186324fde487 Mon Sep 17 00:00:00 2001 From: Daniel Richards Date: Fri, 31 May 2024 15:07:27 +0800 Subject: [PATCH] Rename variable to `bindingSource` --- packages/block-editor/src/hooks/use-bindings-attributes.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/block-editor/src/hooks/use-bindings-attributes.js b/packages/block-editor/src/hooks/use-bindings-attributes.js index 7a39fd7f4f76cc..9e76e694cdba55 100644 --- a/packages/block-editor/src/hooks/use-bindings-attributes.js +++ b/packages/block-editor/src/hooks/use-bindings-attributes.js @@ -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;