This repository was archived by the owner on Feb 23, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed
assets/js/blocks/product-category Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ import PropTypes from 'prop-types';
2222 * Internal dependencies
2323 */
2424import getQuery from '../../utils/get-query' ;
25- import ProductAttributeControl from '../../components/product-attribute-control' ;
2625import ProductCategoryControl from '../../components/product-category-control' ;
2726import ProductOrderbyControl from '../../components/product-orderby-control' ;
2827import 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 }
You can’t perform that action at this time.
0 commit comments