We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When there is no image in the resolution "small" available for a product, the order history page throws an error.
Delete the "small" image resolution of a product present in an order. Navigate to the account/orders page.
I expected to see a skeleton or placeholder for the image.
The page throws an error.
"name": "@salesforce/retail-react-app", "version": "5.0.0",
The error seems to come from the order-history.jsx component.
const images = products?.map((product) => { return product?.imageGroups?.find((group) => group.viewType === 'small').images[0] })
Screenshot of the error:
The text was updated successfully, but these errors were encountered:
Hey ! Can I work on this ?
Sorry, something went wrong.
No branches or pull requests
Summary
When there is no image in the resolution "small" available for a product, the order history page throws an error.
Steps To Reproduce
Delete the "small" image resolution of a product present in an order.
Navigate to the account/orders page.
Expected result
I expected to see a skeleton or placeholder for the image.
Actual result
The page throws an error.
System Information (as applicable)
"name": "@salesforce/retail-react-app",
"version": "5.0.0",
Additional information
The error seems to come from the order-history.jsx component.
const images = products?.map((product) => { return product?.imageGroups?.find((group) => group.viewType === 'small').images[0] })
Screenshot of the error:
The text was updated successfully, but these errors were encountered: