datocms / gatsby-source-datocms

Official GatsbyJS source plugin to pull content from DatoCMS
MIT License
140 stars 51 forks source link

Default focal point returns "null" #155

Closed claygiffin closed 3 years ago

claygiffin commented 3 years ago

When attempting to query an image that has not had its focal point deliberately set, Gatsby returns a null value instead of the default {x: 50, y: 50} that appears in DatoCMS's API explorer.

This can cause a build to break when querying x or y on a null object.

stefanoverna commented 3 years ago

Agreed! It's now implemented in v2.6.12 (focalPoint is still null for assets that are not images)