#guys any idea about error I tried
1 messages · Page 1 of 1 (latest)
FWIW #1007476603422527558 for code questions.
You cant have undefined in JSON.
For example if
const pageInfo = await fetchPageInfo() is undefined you need to handle that.
You could do
const pageInfo = await fetchPageInfo() || null since null is serializable in json
Thank you for answer, its gone. But now, map is not working due null. Is it about my fetch functions why i get null or undefined. My endpoints are working.
You need to figure out what to do when socials is null. The quickest solution would be to do socials?.map (optional chaining operator https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining)
yes. i can see the project now. But any idea why i get null? as i said endpoints are working. Can i send you the fetch function? Thank youç