From 288521e426502f5ecb13d0dd55fdae3bbc58bbd0 Mon Sep 17 00:00:00 2001 From: Karol Manijak Date: Wed, 15 Mar 2023 12:06:45 +0100 Subject: [PATCH] Change the property name of the attribute slug in Products By Attribute after the refactor --- assets/js/blocks/products-by-attribute/edit-mode.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/blocks/products-by-attribute/edit-mode.tsx b/assets/js/blocks/products-by-attribute/edit-mode.tsx index 0c3fac42baf..c72105210bb 100644 --- a/assets/js/blocks/products-by-attribute/edit-mode.tsx +++ b/assets/js/blocks/products-by-attribute/edit-mode.tsx @@ -55,7 +55,7 @@ export const ProductsByAttributeEditMode = ( selected={ blockAttributes.attributes } onChange={ ( value = [] ) => { const result = value.map( - ( { id, attr_slug: attributeSlug } ) => ( { + ( { id, value: attributeSlug } ) => ( { id, attr_slug: attributeSlug, } )