Skip to content

Commit fb0867d

Browse files
authored
fix: allow nullable gatsbyImageData (#217)
1 parent 1c16f32 commit fb0867d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

gatsby-source-graphcms/src/gatsby-node.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -431,10 +431,10 @@ export function createResolvers(
431431

432432
const resolvers = {
433433
[`${typePrefix}Asset`]: {
434-
gatsbyImageData: getGatsbyImageResolver(
435-
makeResolveGatsbyImageData(cache),
436-
args
437-
),
434+
gatsbyImageData: {
435+
...getGatsbyImageResolver(makeResolveGatsbyImageData(cache), args),
436+
type: 'JSON',
437+
},
438438
},
439439
}
440440

0 commit comments

Comments
 (0)