elixirlabsinc / endslaverynow

Creating the End Slavery Now project
2 stars 0 forks source link

Small bug fixes #4

Closed toriejw closed 5 years ago

toriejw commented 5 years ago

3 small fixes:

1) parentCategoryId was being required when creating a product, which isn't something you can (currently) select when creating a product.

2) The ID generated for a new product was undefined, because the code was expecting products to be an array when it was an object.

3) Category page wasn't showing any products, because it expected the categories field on a brand to be a string, but it was a number.

aashnisshah commented 5 years ago

LGTM!