From 3278a354eee39470f098d5674d1e284da57335a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dami=C3=A1n=20Su=C3=A1rez?= Date: Sat, 13 Apr 2024 11:59:14 +0100 Subject: [PATCH] fix typo --- .../block-editor/src/hooks/use-bindings-attributes.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/block-editor/src/hooks/use-bindings-attributes.js b/packages/block-editor/src/hooks/use-bindings-attributes.js index dbfe958bd75f7a..ff7a1409f3334c 100644 --- a/packages/block-editor/src/hooks/use-bindings-attributes.js +++ b/packages/block-editor/src/hooks/use-bindings-attributes.js @@ -100,7 +100,7 @@ const BindingConnector = ( { const { name: blockName } = blockProps; const attrValue = blockProps.attributes[ attrName ]; - const updateBoundAttibute = useCallback( + const updateBoundAttribute = useCallback( ( newAttrValue, prevAttrValue ) => { /* * If the attribute is a RichTextData instance, @@ -134,7 +134,7 @@ const BindingConnector = ( { useLayoutEffect( () => { if ( typeof propValue !== 'undefined' ) { - updateBoundAttibute( propValue, attrValue ); + updateBoundAttribute( propValue, attrValue ); } else if ( placeholder ) { /* * Placeholder fallback. @@ -147,14 +147,14 @@ const BindingConnector = ( { getBlockType( blockName ).attributes[ attrName ].attribute; if ( htmlAttribute === 'src' || htmlAttribute === 'href' ) { - updateBoundAttibute( null ); + updateBoundAttribute( null ); return; } - updateBoundAttibute( placeholder ); + updateBoundAttribute( placeholder ); } }, [ - updateBoundAttibute, + updateBoundAttribute, propValue, attrValue, placeholder,