Closed toriejw closed 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.
parentCategoryId
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.
LGTM!
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.