gatsby-source-contentful
returns empty srcSet
and srcSetWebp
when querying fixed
images with only height
argument.
#24392
Labels
topic: source-contentful
Related to Gatsby's integration with Contentful
type: bug
An issue or pull request relating to a bug in Gatsby
Description
gatsby-source-contentful
returns emptysrcSet
andsrcSetWebp
when queryingfixed
images with onlyheight
argument.These values are included when making the same query but passing in a
width
argument, and also included when passing aheight
argument if usinggatsby-plugin-sharp
. See screenshot for comparison:Steps to reproduce
gatsby-source-contentful
gatsby-astronaut
image to ContentfulImage
component query to this:Expected result
A value for both
srcSet
andsrcSetWebp
should be returned.Actual result
Empty strings are returned for both fields.
Environment
The text was updated successfully, but these errors were encountered: