Skip to content

Commit

Permalink
Fix check
Browse files Browse the repository at this point in the history
  • Loading branch information
perrin4869 authored and Marsup committed Oct 22, 2022
1 parent 9c077e2 commit 1e94298
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/types/keys.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,10 @@ module.exports = Any.extend({

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

continue;
}
Expand Down

0 comments on commit 1e94298

Please sign in to comment.