Change the property name of the attribute slug in Products By Attribute after the refactor (https://github.com/woocommerce/woocommerce-blocks/pull/8759)

This commit is contained in:
kmanijak 2023-03-15 12:29:13 +01:00 committed by GitHub
parent 5a3e7b5afc
commit afa8672e49
1 changed files with 1 additions and 1 deletions

View File

@ -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,
} )