Skip to content

Commit

Permalink
fix(populate): set not found values to null for paths that are not …
Browse files Browse the repository at this point in the history
…in the schema

Fix #9913
  • Loading branch information
vkarpov15 committed Feb 16, 2021
1 parent 881ee62 commit aa7b529
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/helpers/populate/assignVals.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ function valueFilter(val, assignmentOpts, populateOptions) {
if (populateOptions.justOne === false) {
return [];
}
return val;
return val == null ? val : null;
}

/*!
Expand Down

0 comments on commit aa7b529

Please sign in to comment.