Skip to content

Commit

Permalink
Fix issue where graphql errors response returned undefined instead of…
Browse files Browse the repository at this point in the history
… null (#4262)
  • Loading branch information
jeffsee55 committed Oct 17, 2023
1 parent 035c1c8 commit 5ce9ca9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/tinacms/src/unifiedClient/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export class TinaClient<GenQueries> {
}
return {
data: json?.data as DataType,
errors: json?.errors as GraphQLError[] | undefined,
errors: (json?.errors || null) as GraphQLError[] | null,
query: args.query,
}
}
Expand Down

0 comments on commit 5ce9ca9

Please sign in to comment.