Skip to content

Commit

Permalink
fix(json-schema): take account of empty model in required expr (#2904)
Browse files Browse the repository at this point in the history
fix #2898
  • Loading branch information
andmoredev committed Jul 8, 2021
1 parent 6cb40ec commit 22451d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/json-schema/src/formly-json-schema.service.ts
Expand Up @@ -181,7 +181,7 @@ export class FormlyJsonschema {
return true;
}

return propDeps[property] && propDeps[property].some(k => !isEmpty(m[k]));
return propDeps[property] && (m && propDeps[property].some(k => !isEmpty(m[k])));
},
};
}
Expand Down

0 comments on commit 22451d9

Please sign in to comment.