Skip to content

Commit 4caf37c

Browse files
authored
Fix TypeError: Cannot read property 'name' of undefined
1 parent 06180a8 commit 4caf37c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PostgraphileNestedTypesPlugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ module.exports = function PostGraphileNestedTypesPlugin(
302302
},
303303
);
304304
}
305-
if (creatable) {
305+
if (creatable && gqlForeignTableType) {
306306
const createInputType = newWithHooks(
307307
GraphQLInputObjectType,
308308
{

0 commit comments

Comments
 (0)