I am new to React (with TypeScript) and Firebase. My code uploads multiple images to firebase storage and sends URLs of those images to my collection document. I read the data from collection. But when I try to console.log the imageUrls field, it shows undefined. However the array of urls is in imageUrls field. So when I console.log the whole collection, I can see imageUrls data. Anyone has an idea what is going on? Thank you!
I tried to paste manually urls in that array. It worked. So the problem is in rendering imageUrls fields, because I still get the data from other fields from that exact document. Iterface of types for fetching data seems to be correct.