Fix issue with deleting variations in new product editor (#40219)
* Fix onDelete param * Add changelog
This commit is contained in:
parent
9ea83d6382
commit
c661186499
|
@ -0,0 +1,4 @@
|
|||
Significance: minor
|
||||
Type: fix
|
||||
|
||||
Fix delete variation in block product editor
|
|
@ -78,7 +78,7 @@ export function VariationActionsMenu( {
|
|||
label={ __( 'Delete variation', 'woocommerce' ) }
|
||||
variant="link"
|
||||
onClick={ () => {
|
||||
onDelete( selection.id );
|
||||
onDelete( selection );
|
||||
onClose();
|
||||
} }
|
||||
className="woocommerce-product-variations__actions--delete"
|
||||
|
|
Loading…
Reference in New Issue