Skip to content

Commit

Permalink
Temp fix tests. Will need to backport to main
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Aug 28, 2024
1 parent cc9d23e commit 5d210de
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/cache/core/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,10 @@ export abstract class ApolloCache<TSerialized> implements DataProxy {
...otherOptions
} = options;
const query = this.getFragmentDoc(fragment, fragmentName);
const id = typeof from === "string" ? from : this.identify(from);
const id =
typeof from === "string" || typeof from === "undefined" ?
from
: this.identify(from);
const dataMasking = !!(options as any)[Symbol.for("apollo.dataMasking")];

if (__DEV__) {
Expand Down

0 comments on commit 5d210de

Please sign in to comment.