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:
parent
5a3e7b5afc
commit
afa8672e49
|
@ -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,
|
||||
} )
|
||||
|
|
Loading…
Reference in New Issue