Closed jaepass closed 4 years ago
I've had to revert this, I couldn't see why, but this was causing build failures (https://app.netlify.com/sites/commercejs-demo-store/deploys/5f7dec61210e3b000807dc4b). It is reproducible by running yarn deploy
locally. Without these changes it builds correctly.
yea that was what caused the initial build failure and points to this https://reactjs.org/docs/error-decoder.html/?invariant=143. will need another way of handling this error (the original category bug)
The main issue is in
_app.js
when matchingdata.slug
toitem.slug
in order to merge the category images into the category data. I've tested doing the full manual setup process of seeding and then changing categories, if no match of slugs, the category banner will just render the image that matches otherwise, it will be an empty array. not sure if this is the best way for error handling.