Skip to content

Commit 9c077e2

Browse files
perrin4869Marsup
authored andcommitted
Apply isPresent to the source property
1 parent fc68a66 commit 9c077e2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/types/keys.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,7 @@ module.exports = Any.extend({
144144

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

150149
continue;
151150
}

0 commit comments

Comments
 (0)