WIP
This commit is contained in:
parent
259b527214
commit
0a2d2f658e
6 changed files with 90 additions and 61 deletions
|
|
@ -57,7 +57,8 @@ function fallbackValue (crypto, machine, instances) {
|
|||
const pickValue = arr => R.find(instance => matchesValue(arr[0], arr[1], instance), instances)
|
||||
console.log('DEBUG11: %j', permutations(crypto, machine))
|
||||
console.log('DEBUG14: %j', R.map(pickValue, permutations(crypto, machine)))
|
||||
return R.find(notNil, R.map(pickValue, permutations(crypto, machine)))
|
||||
const fallbackRec = R.find(notNil, R.map(pickValue, permutations(crypto, machine)))
|
||||
return fallbackRec && fallbackRec.fieldValue.value
|
||||
}
|
||||
|
||||
function generalScoped (crypto, machine, config) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue