Skip to content

Commit

Permalink
Don't bother preserving prototypes of objects to be JSON-serialized.
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamn committed May 14, 2021
1 parent 842eb5e commit bbe2fb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utilities/graphql/storeUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ function stringifyReplacer(_key: string, value: any): any {
value = Object.keys(value).sort().reduce((copy, key) => {
copy[key] = value[key];
return copy;
}, Object.create(Object.getPrototypeOf(value)));
}, {} as Record<string, any>);
}
return value;
}
Expand Down

0 comments on commit bbe2fb3

Please sign in to comment.