Skip to content

Commit e139486

Browse files
committed
be more defensive
1 parent 3ebfae2 commit e139486

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/gatsby/src/schema/schema.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1060,7 +1060,7 @@ const addInferredChildOfExtension = ({ schemaComposer, typeComposer }) => {
10601060
// to be added in `addConvenienceChildrenFields` method.
10611061
// Also required for proper printing of the `@childOf` directive in the snapshot plugin
10621062
if (!childOfExtension) {
1063-
childOfExtension = {}
1063+
childOfExtension = { types: [], mimeTypes: [] }
10641064
}
10651065
if (!childOfExtension.types) {
10661066
childOfExtension.types = []

0 commit comments

Comments
 (0)