Next.js Discord

Discord Forum

Error when trying to get array

Answered
Arboreal ant posted this in #help-forum
Open in Discord
Arboreal antOP
So i get the error shown in the screenshot, the console log works with no problem and it logs all of the servers but i still get an error saying that results cant be found
Answered by Standard Chinchilla
Use the optional notation:
serverlist.serverlist?.results
View full answer

4 Replies

Standard Chinchilla
Use the optional notation:
serverlist.serverlist?.results
Answer
Standard Chinchilla
Btw nice pfp
I worked on fancy bear smart contracts and built their original mint page
@Standard Chinchilla Use the optional notation: serverlist.serverlist?.results
Arboreal antOP
that fixed it, thanks