From 2201fe7db76f03c97569bec8598a9ff38280639c Mon Sep 17 00:00:00 2001 From: Kelly Dwan Date: Mon, 14 Jan 2019 14:53:55 -0500 Subject: [PATCH] =?UTF-8?q?Remove=20the=20=E2=80=9CFilter=20by=20Attribute?= =?UTF-8?q?=E2=80=9D=20panel=20from=20products=20by=20category=20block=20(?= =?UTF-8?q?https://github.com/woocommerce/woocommerce-blocks/pull/321)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../assets/js/blocks/product-category/block.js | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/plugins/woocommerce-blocks/assets/js/blocks/product-category/block.js b/plugins/woocommerce-blocks/assets/js/blocks/product-category/block.js index 3ea8a2bd366..289d64bc5a9 100644 --- a/plugins/woocommerce-blocks/assets/js/blocks/product-category/block.js +++ b/plugins/woocommerce-blocks/assets/js/blocks/product-category/block.js @@ -22,7 +22,6 @@ import PropTypes from 'prop-types'; * Internal dependencies */ import getQuery from '../../utils/get-query'; -import ProductAttributeControl from '../../components/product-attribute-control'; import ProductCategoryControl from '../../components/product-category-control'; import ProductOrderbyControl from '../../components/product-orderby-control'; import ProductPreview from '../../components/product-preview'; @@ -132,21 +131,6 @@ class ProductByCategoryBlock extends Component { value={ orderby } /> - - { - const selected = value.map( ( { id, attr_slug } ) => ( { // eslint-disable-line camelcase - id, - attr_slug, - } ) ); - setAttributes( { attributes: selected } ); - } } - /> - ); }