Hey guys I have a for loop going here everything logs to console for each NFT before the data was showing with metadata.data.name but now in the for loop for some reason I don’t know how to grab the data from the object. If anyone could help would mean a lot thank you!
await nfts.forEach(function(nft){
console.log(nft)
let url = nft.token_uri;
const params = { theUrl : url }
const metadata = Moralis.Cloud.run("fetchJSON", params);
console.log(metadata);
document.getElementById("nftboyname").innerHTML = metadata.data.name;
document.getElementById("nftboyinfo").innerHTML = metadata.data.description;