From 50b61358dda4acc11150b377d57ea4e0d371fdd4 Mon Sep 17 00:00:00 2001 From: George Mamadashvili Date: Wed, 21 Aug 2024 18:04:17 +0400 Subject: [PATCH] Block Bindings: Fix ESLint warnings --- packages/block-library/src/button/edit.js | 2 +- packages/block-library/src/image/edit.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/block-library/src/button/edit.js b/packages/block-library/src/button/edit.js index 28d42ef16ca1e4..d7b8e6486c3c66 100644 --- a/packages/block-library/src/button/edit.js +++ b/packages/block-library/src/button/edit.js @@ -254,7 +254,7 @@ function ButtonEdit( props ) { } ), }; }, - [ isSelected, metadata?.bindings?.url ] + [ context, isSelected, metadata?.bindings?.url ] ); return ( diff --git a/packages/block-library/src/image/edit.js b/packages/block-library/src/image/edit.js index 9eba4dacb57c31..fb11b3f50a5b64 100644 --- a/packages/block-library/src/image/edit.js +++ b/packages/block-library/src/image/edit.js @@ -322,7 +322,7 @@ export function ImageEdit( { : __( 'Connected to dynamic data' ), }; }, - [ isSingleSelected, metadata?.bindings?.url ] + [ context, isSingleSelected, metadata?.bindings?.url ] ); const placeholder = ( content ) => { return (