-
Notifications
You must be signed in to change notification settings - Fork 263
New issue
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
Product image source claims its undefined when its not #911
Comments
Hello I am working with buy sdk and im trying map an array of returned product images objects into a component an dgrab the first image to display. When I call the console.log(product.images[0].src) before the return statement i get the image url. But when I call the product.images[0].src or product.images[0].url inside return I get an error in the console how. This is the error im getting: link to imageThis is my source code:`import React, { useContext, useEffect } from 'react' import { Base64 } from 'js-base64'; const ShopPage = () => {
} export default ShopPage;` |
I have thesame error, i don´t know how to fix it. Did you fix it? |
Please complete the checklist before filing an issue:
None of the above? Create an issue. Be sure to include all the necessary information for us to understand and reproduce the problem:
Bug details
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behaviour:
Please include code samples.
If the error you're dealing with is a network / API issue, please include the value of the
X-Request-ID
response header, the data sent to the API, and the payload of the response.Expected behavior
A clear and concise description of what you expected to happen.
Environment (please complete the following information):
v1.2.0
]Additional context
Add any other context about the problem here.
Bug Report Checklist
The text was updated successfully, but these errors were encountered: