Skip to content

Commit

Permalink
Merge pull request #5463 from reactioncommerce/fix-5462-console-warnings
Browse files Browse the repository at this point in the history
Fix console warnings
  • Loading branch information
mikemurray authored Aug 20, 2019
2 parents c8c380d + 0274052 commit 3163cc1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,12 @@ class ProductGrid extends Component {

renderProductGridItems() {
const { productMediaById, products } = this.props;
const { classes, ...notClasses } = this.props;

if (Array.isArray(products) && products.length > 0) {
return products.map((product, index) => (
<Components.ProductGridItems
{...this.props}
{...notClasses}
product={product}
productMedia={productMediaById[product._id]}
key={index}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { getTagIds as getIds } from "/lib/selectors/tags";
class Products extends Component {
static propTypes = {
canLoadMoreProducts: PropTypes.bool,
files: PropTypes.arrayOf(PropTypes.file),
files: PropTypes.arrayOf(PropTypes.object),
handleDelete: PropTypes.func,
isFiltered: PropTypes.bool,
isProductsSubscriptionReady: PropTypes.bool,
Expand Down

0 comments on commit 3163cc1

Please sign in to comment.