Skip to content

Commit

Permalink
fix: allow nullable gatsbyImageData (#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
notrab authored Jan 4, 2022
1 parent 1c16f32 commit fb0867d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gatsby-source-graphcms/src/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -431,10 +431,10 @@ export function createResolvers(

const resolvers = {
[`${typePrefix}Asset`]: {
gatsbyImageData: getGatsbyImageResolver(
makeResolveGatsbyImageData(cache),
args
),
gatsbyImageData: {
...getGatsbyImageResolver(makeResolveGatsbyImageData(cache), args),
type: 'JSON',
},
},
}

Expand Down

0 comments on commit fb0867d

Please sign in to comment.