Skip to content

Commit

Permalink
Merge pull request #2809 from HeroJourneyClub/master
Browse files Browse the repository at this point in the history
[#2800] Fix graphql schema generation with plugin introspectComments enabled
  • Loading branch information
kamilmysliwiec authored May 15, 2023
2 parents b498c05 + 13fb950 commit 97baf8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/graphql/lib/plugin/utils/ast-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ function getNameFromExpression(expression: LeftHandSideExpression) {
export function getJSDocDescription(node: Node): string {
const jsDoc: JSDoc[] = (node as any).jsDoc;

if (!jsDoc) {
if (!jsDoc || !jsDoc[0]) {
return undefined;
}

Expand Down

0 comments on commit 97baf8a

Please sign in to comment.