From 0a1029196940bdd0b45f8ba6e0b3012240d2734f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Albert=20Juh=C3=A9=20Lluveras?= Date: Wed, 20 Feb 2019 10:21:19 +0100 Subject: [PATCH] Don't show variations table when there is an active search (https://github.com/woocommerce/woocommerce-admin/pull/1601) --- .../client/analytics/report/products/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/woocommerce-admin/client/analytics/report/products/index.js b/plugins/woocommerce-admin/client/analytics/report/products/index.js index 0abb861d4ce..4d116dc636d 100644 --- a/plugins/woocommerce-admin/client/analytics/report/products/index.js +++ b/plugins/woocommerce-admin/client/analytics/report/products/index.js @@ -133,7 +133,8 @@ export default compose( withSelect( ( select, props ) => { const { query } = props; const { getItems, isGetItemsRequesting, getItemsError } = select( 'wc-api' ); - const isSingleProductView = query.products && 1 === query.products.split( ',' ).length; + const isSingleProductView = + ! query.search && query.products && 1 === query.products.split( ',' ).length; if ( isSingleProductView ) { const productId = parseInt( query.products ); const includeArgs = { include: productId };