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 }
|
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,
|
||||||
} )
|
} )
|
||||||
|
|
Loading…
Reference in New Issue