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 } selected={ blockAttributes.attributes }
onChange={ ( value = [] ) => { onChange={ ( value = [] ) => {
const result = value.map( const result = value.map(
( { id, attr_slug: attributeSlug } ) => ( { ( { id, value: attributeSlug } ) => ( {
id, id,
attr_slug: attributeSlug, attr_slug: attributeSlug,
} ) } )