diff --git a/plugins/woocommerce-blocks/assets/js/legacy/views/specific-select.jsx b/plugins/woocommerce-blocks/assets/js/legacy/views/specific-select.jsx index 50463e5221a..23d542fe763 100644 --- a/plugins/woocommerce-blocks/assets/js/legacy/views/specific-select.jsx +++ b/plugins/woocommerce-blocks/assets/js/legacy/views/specific-select.jsx @@ -348,13 +348,15 @@ class ProductSpecificSearchResultsDropdownElement extends Component { render() { const product = this.props.product; const icon = this.props.selected ? : null; + const productImage = product.images.length !== 0 ? + ({) : null; /* eslint-disable jsx-a11y/click-events-have-key-events */ /* eslint-disable jsx-a11y/no-static-element-interactions */ /* reason: This interface will be deprecated, the new component is accessible. */ return (
- + { productImage } { product.name } { icon }
@@ -458,11 +460,13 @@ class ProductSpecificSelectedProducts extends Component { } const productData = PRODUCT_DATA[ productId ]; + const productImage = productData.images.length !== 0 ? + ({) : null; productElements.push(
  • - + { productImage } { productData.name }