Can't access image field data.attributes in vue app

System Information
  • Strapi Version: 4.25.8
  • Operating System: Windows 10
  • Database: SQLite
  • Node Version: 18.0.0
  • NPM Version: 8.6.0
  • Yarn Version: N/A

I’m building a vue app a section in it generates cards with dynamic data that I fetch using strapi’s api. I made sure to populate the document so that I could access the image field. When I log the response I see that all the data is there but when it comes to accessing the attributes property in the image’s data object I get a ''Cannot read properties of undefined (reading ‘attributes’)" error.