|
@@ -198,7 +198,9 @@ function projectData(data, schema, options) {
|
|
|
const scope = options && options.scope || void 0;
|
|
const scope = options && options.scope || void 0;
|
|
|
const propNames = Object.keys(strict ? schema : data);
|
|
const propNames = Object.keys(strict ? schema : data);
|
|
|
propNames.forEach((propName) => {
|
|
propNames.forEach((propName) => {
|
|
|
- if (!(propName in data)) return;
|
|
|
|
|
|
|
+ if (!(propName in data)) {
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
const propOptions = schema[propName];
|
|
const propOptions = schema[propName];
|
|
|
if (_shouldSelect(propOptions, strict, scope)) {
|
|
if (_shouldSelect(propOptions, strict, scope)) {
|
|
|
const value = data[propName];
|
|
const value = data[propName];
|