Skip to content

Commit

Permalink
fix error for real
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasheyenbrock committed May 6, 2024
1 parent bff79d2 commit 8acbecf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/graphiql-react/src/execution.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,7 @@ function mergeIncrementalResult(
for (const item of incrementalResult.items) {
setValue(executionResult, path.join('.'), item);

Check warning on line 362 in packages/graphiql-react/src/execution.tsx

View check run for this annotation

Codecov / codecov/patch

packages/graphiql-react/src/execution.tsx#L361-L362

Added lines #L361 - L362 were not covered by tests
// Increment the last path segment (the array index) to merge the next item at the next index
// eslint-disable-next-line unicorn/prefer-at -- cannot mutate the array using Array.at()
(path[path.length - 1] as number)++;

Check warning on line 365 in packages/graphiql-react/src/execution.tsx

View check run for this annotation

Codecov / codecov/patch

packages/graphiql-react/src/execution.tsx#L365

Added line #L365 was not covered by tests
}
}
Expand Down

0 comments on commit 8acbecf

Please sign in to comment.