Skip to content

Commit d6720ec

Browse files
authored
Revert filter for child products (#58)
- Revert filter for child products - Add new contributors
1 parent d664729 commit d6720ec

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
4444
<tr>
4545
<td align="center"><a href="https://github.com/BonnieEP"><img src="https://avatars3.githubusercontent.com/u/49495842?v=4" width="100px;" alt=""/><br /><sub><b>Bonnie Bishop</b></sub></a><br /><a href="https://ui-components.elasticpath.com" title="Design">🎨</td>
4646
<td align="center"><a href="https://github.com/JenSmith-EP"><img src="https://avatars3.githubusercontent.com/u/58435007?v=4" width="100px;" alt=""/><br /><sub><b>Jen Smith</b></sub></a><br /><a href="https://documentation.elasticpath.com/storefront-react" title="Documentation">📖</a></td>
47+
<td align="center"><a href="https://github.com/mwan-ep"><img src="https://avatars3.githubusercontent.com/u/54115904?v=4" width="100px;" alt=""/><br /><sub><b>Michelle Wan</b></sub></a><br /><a href="https://github.com/elasticpath/epcc-react-pwa-reference-storefront/commits?author=mwan-ep" title="Code">💻</a></td>
4748
</tr>
4849
</table>
4950

src/Category.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,7 @@ export const Category: React.FC = () => {
6666
<h1 className="category__categoryname">{category?.name ?? ' '}</h1>
6767

6868
<ul className="category__productlist">
69-
{products && products.data
70-
.filter(product => !product.relationships.hasOwnProperty('parent'))
71-
.map(product => (
69+
{products && products.data.map(product => (
7270
<li key={product.id} className="category__product">
7371
<ProductThumbnail product={product} />
7472
</li>

0 commit comments

Comments
 (0)