Skip to content

Commit

Permalink
Update packages/core/src/gql.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Jovi De Croock <[email protected]>
  • Loading branch information
kitten and JoviDeCroock authored Oct 19, 2024
1 parent 3e6dcd0 commit d080c43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/gql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function gql(parts: string | TemplateStringsArray /* arguments */) {

source.unshift(keyDocument(body));
for (let i = 0; i < source.length; i++) {
for (let j = 0; j < source[i].definitions; j++) {
for (let j = 0; j < source[i].definitions.length; j++) {
const definition = source[i].definitions[j];
if (definition.kind === Kind.FRAGMENT_DEFINITION) {
const name = definition.name.value;
Expand Down

0 comments on commit d080c43

Please sign in to comment.