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

Commit aa25bf8

Browse files
authored
Remove the “Filter by Attribute” panel from products by category block (#321)
1 parent d8c6199 commit aa25bf8

File tree

1 file changed

+0
-16
lines changed
  • assets/js/blocks/product-category

1 file changed

+0
-16
lines changed

assets/js/blocks/product-category/block.js

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import PropTypes from 'prop-types';
2222
* Internal dependencies
2323
*/
2424
import getQuery from '../../utils/get-query';
25-
import ProductAttributeControl from '../../components/product-attribute-control';
2625
import ProductCategoryControl from '../../components/product-category-control';
2726
import ProductOrderbyControl from '../../components/product-orderby-control';
2827
import ProductPreview from '../../components/product-preview';
@@ -132,21 +131,6 @@ class ProductByCategoryBlock extends Component {
132131
value={ orderby }
133132
/>
134133
</PanelBody>
135-
<PanelBody
136-
title={ __( 'Filter by Attribute', 'woo-gutenberg-products-block' ) }
137-
initialOpen={ false }
138-
>
139-
<ProductAttributeControl
140-
selected={ attributes.attributes }
141-
onChange={ ( value = [] ) => {
142-
const selected = value.map( ( { id, attr_slug } ) => ( { // eslint-disable-line camelcase
143-
id,
144-
attr_slug,
145-
} ) );
146-
setAttributes( { attributes: selected } );
147-
} }
148-
/>
149-
</PanelBody>
150134
</InspectorControls>
151135
);
152136
}

0 commit comments

Comments
 (0)