Skip to content

Commit

Permalink
Apply isPresent to the source property
Browse files Browse the repository at this point in the history
  • Loading branch information
perrin4869 authored and Marsup committed Oct 22, 2022
1 parent fc68a66 commit 9c077e2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/types/keys.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,7 @@ module.exports = Any.extend({

if (schema.$_terms.dependencies) {
for (const dep of schema.$_terms.dependencies) {
if (dep.key &&
dep.key.resolve(value, state, prefs, null, { shadow: false }) === undefined) {
if (!internals.isPresent(dep.key && dep.key.resolve(value, state, prefs, null, { shadow: false }), dep.options)) {

continue;
}
Expand Down

0 comments on commit 9c077e2

Please sign in to comment.