Skip to content

Commit 418c3bc

Browse files
authored
fix(contentful): set proper defaults for gatsby-plugin-image (#30536)
1 parent b9791fe commit 418c3bc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/gatsby-source-contentful/src/extend-node-type.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -802,6 +802,9 @@ exports.extendNodeType = ({ type, store }) => {
802802

803803
fieldConfig.type = GraphQLJSON
804804

805+
fieldConfig.args.placeholder.defaultValue = `dominantColor`
806+
fieldConfig.args.layout.defaultValue = `constrained`
807+
805808
return fieldConfig
806809
}
807810

0 commit comments

Comments
 (0)