works with l-m again
This commit is contained in:
parent
5d6cc78b37
commit
03edd9c7e0
5 changed files with 62 additions and 51 deletions
|
|
@ -52,10 +52,7 @@ function permutations (crypto, machine) {
|
|||
|
||||
function fallbackValue (crypto, machine, instances) {
|
||||
const notNil = R.pipe(R.isNil, R.not)
|
||||
console.log('DEBUG10: %j', 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)))
|
||||
const fallbackRec = R.find(notNil, R.map(pickValue, permutations(crypto, machine)))
|
||||
return fallbackRec && fallbackRec.fieldValue.value
|
||||
}
|
||||
|
|
@ -69,7 +66,6 @@ function generalScoped (crypto, machine, config) {
|
|||
|
||||
const scopedGroups = group => {
|
||||
const instances = group.values
|
||||
console.log('DEBUG66: %j', keys(instances))
|
||||
return [group.code, R.fromPairs(keys(instances).map(key => scopedValue(key, instances)))]
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue