Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Product Query - Add To Cart block is visible in the inserter (#7389)
Browse files Browse the repository at this point in the history
* Product Query - add to cart block is visible in the inserter

* rename ancestors to ancestor
  • Loading branch information
gigitux authored and sunyatasattva committed Oct 22, 2022
1 parent e603a99 commit 30cf20c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion assets/js/atomic/blocks/product-elements/button/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ const blockConfig = {
apiVersion: 2,
title,
description,
parent: [ 'core/group' ],
ancestor: [
'@woocommerce/all-products',
'@woocommerce/single-product',
Expand Down
2 changes: 1 addition & 1 deletion assets/js/atomic/blocks/product-elements/shared/config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const sharedConfig: Omit< BlockConfiguration, 'attributes' | 'title' > = {
supports: {
html: false,
},
parent: [ '@woocommerce/all-products', '@woocommerce/single-product' ],
ancestor: [ '@woocommerce/all-products', '@woocommerce/single-product' ],
save,
deprecated: [
{
Expand Down

0 comments on commit 30cf20c

Please sign in to comment.