Skip to content

Commit

Permalink
Change removeInvalidBindingButton variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
SantosGuillamot committed Sep 2, 2024
1 parent 64b0afc commit 0e370ae
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 @@ -301,7 +301,7 @@ export const withBlockBindingSupport = createHigherOrderComponent(

// Throw a warning if the block is connected to an invalid source.
if ( invalidBinding ) {
const removeAllBindingsButton = (
const removeInvalidBindingButton = (
<Button
__next40pxDefaultSize={ false }
key="remove-all-bindings"
Expand All @@ -317,7 +317,7 @@ export const withBlockBindingSupport = createHigherOrderComponent(
);
return (
<div className="has-warning">
<Warning actions={ [ removeAllBindingsButton ] }>
<Warning actions={ [ removeInvalidBindingButton ] }>
{ sprintf(
/* translators: %1$s: block attribute, %2$s: invalid block bindings source. */
__(
Expand Down

0 comments on commit 0e370ae

Please sign in to comment.