From a2171c0eb745f085bb0f07dc66cf8a3067370525 Mon Sep 17 00:00:00 2001 From: Daniel Dudzic Date: Sat, 29 Jul 2023 04:47:32 +0200 Subject: [PATCH] Product Gallery Thumbnails: Add missing dependency --- assets/js/blocks/product-gallery/edit.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/blocks/product-gallery/edit.tsx b/assets/js/blocks/product-gallery/edit.tsx index 9e858b49878..333ba96e9a8 100644 --- a/assets/js/blocks/product-gallery/edit.tsx +++ b/assets/js/blocks/product-gallery/edit.tsx @@ -53,7 +53,7 @@ export const Edit = ( { updateGroupBlockType( attributes, clientId ); // Move the Thumbnails block to the correct above or below the Large Image based on the thumbnailsPosition attribute. moveInnerBlocksToPosition( attributes, clientId ); - }, [ attributes, clientId ] ); + }, [ setAttributes, attributes, clientId ] ); return (