Skip to content

Commit

Permalink
Fix masking on arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Mar 14, 2024
1 parent e85702d commit 0229340
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/masking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function maskSelection(data: any, selectionSet: SelectionSetNode): any {

masked[keyName] =
childSelectionSet ?
maskSelection({ ...data[keyName] }, childSelectionSet)
maskSelection(data[keyName], childSelectionSet)
: data[keyName];

return masked;
Expand Down

0 comments on commit 0229340

Please sign in to comment.