Fix issue with deleting variations in new product editor (#40219)

* Fix onDelete param

* Add changelog
This commit is contained in:
Fernando Marichal 2023-09-15 17:20:47 -03:00 committed by GitHub
parent 9ea83d6382
commit c661186499
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -0,0 +1,4 @@
Significance: minor
Type: fix
Fix delete variation in block product editor

View File

@ -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"