How to retrive the image url TypeError: Cannot read properties of undefined (reading 'formats')

I recommend to use ‘?’ because not always have the next information inside a object. In this case I would use Pages?.images?.formats?.thumbnail?.url, because the error indicate that inside formats not have nothing. Do you understand?