Skip to content

Commit 836ce77

Browse files
committed
fix tests
1 parent 6257cdf commit 836ce77

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/gatsby-image/src/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const convertProps = props => {
5757
const getImageSrcKey = ({ fluid, fixed }) => {
5858
const data = (fluid && fluid[0]) || (fixed && fixed[0])
5959

60-
return data && data.src
60+
return data.src
6161
}
6262

6363
// Cache if we've seen an image before so we don't bother with
@@ -409,7 +409,7 @@ class Image extends React.Component {
409409
className: placeholderClassName,
410410
}
411411

412-
if (fluid.length) {
412+
if (fluid) {
413413
const imageVariants = fluid
414414
const image = imageVariants[0]
415415

@@ -508,7 +508,7 @@ class Image extends React.Component {
508508
)
509509
}
510510

511-
if (fixed.length) {
511+
if (fixed) {
512512
const imageVariants = fixed
513513
const image = imageVariants[0]
514514

0 commit comments

Comments
 (0)