Skip to content

Commit 1c7be67

Browse files
authored
Merge pull request mlipscombe#42 from msand/fix-read-name-of-undefined
Fix TypeError: Cannot read property 'name' of undefined
2 parents 7d63559 + 4caf37c commit 1c7be67

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
@@ -303,7 +303,7 @@ module.exports = function PostGraphileNestedTypesPlugin(
303303
},
304304
);
305305
}
306-
if (creatable) {
306+
if (creatable && gqlForeignTableType) {
307307
const createInputType = newWithHooks(
308308
GraphQLInputObjectType,
309309
{

0 commit comments

Comments
 (0)