strapi / starters-and-templates

Monorepo for all official Strapi v4 templates
MIT License
327 stars 117 forks source link

support for multiple pictures per post in media gallery #77

Open staminna opened 1 year ago

staminna commented 1 year ago

Enabling multiple images mode in the media gallery produces the following error: open:

Server Error TypeError: Cannot destructure property 'url' of 'image.data.attributes' as it is undefined.

This error happened while generating the page. Any console logs will be displayed in the terminal window. Source components/image.js (5:10) @ Image


  3 | 
  4 | const Image = ({ image, style }) => {
> 5 |   const { url, alternativeText, width, height } = image.data.attributes