We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6257cdf commit 836ce77Copy full SHA for 836ce77
1 file changed
packages/gatsby-image/src/index.js
@@ -57,7 +57,7 @@ const convertProps = props => {
57
const getImageSrcKey = ({ fluid, fixed }) => {
58
const data = (fluid && fluid[0]) || (fixed && fixed[0])
59
60
- return data && data.src
+ return data.src
61
}
62
63
// Cache if we've seen an image before so we don't bother with
@@ -409,7 +409,7 @@ class Image extends React.Component {
409
className: placeholderClassName,
410
411
412
- if (fluid.length) {
+ if (fluid) {
413
const imageVariants = fluid
414
const image = imageVariants[0]
415
@@ -508,7 +508,7 @@ class Image extends React.Component {
508
)
509
510
511
- if (fixed.length) {
+ if (fixed) {
512
const imageVariants = fixed
513
514
0 commit comments