Skip to content

Commit

Permalink
Remove unecessary check
Browse files Browse the repository at this point in the history
  • Loading branch information
bloodyowl committed Nov 18, 2024
1 parent 72d80c8 commit 642b870
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/cache/write.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@ export const writeOperationToCache = (
const fieldNameWithArguments = getFieldNameWithArguments(field, variables);
const fieldValue = parentJson[originalFieldName];

if (!Array.isArray(parentCache)) {
parentCache[REQUESTED_KEYS].add(fieldNameWithArguments);
}
parentCache[REQUESTED_KEYS].add(fieldNameWithArguments);

// either scalar type with no selection, or a null/undefined value
const subSelectionSet = field.selectionSet;
Expand Down

0 comments on commit 642b870

Please sign in to comment.