Skip to content

Commit

Permalink
vulnerability
Browse files Browse the repository at this point in the history
  • Loading branch information
ardatan committed Aug 9, 2023
1 parent 850d8af commit b413f77
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/delegate/src/mergeFields.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ function handleResolverResult(
const objectSubschema = resolverResult[OBJECT_SUBSCHEMA_SYMBOL];
const fieldSubschemaMap = resolverResult[FIELD_SUBSCHEMA_MAP_SYMBOL];
for (const responseKey in resolverResult) {
if (responseKey === '__proto__') {
continue;
}
const existingPropValue = object[responseKey];
const sourcePropValue = resolverResult[responseKey];
if (sourcePropValue != null || existingPropValue == null) {
Expand Down

0 comments on commit b413f77

Please sign in to comment.