🐛 Corrige l'impact disproportionné des variables dans les variations

pull/82/head
Laurent Bossavit 2017-10-09 15:34:55 +02:00
parent 6f1ac1cdb1
commit a0f8c9be7f
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ let devariate = (recurse, k, v) => {
let collectMissing = node => {
let choice = R.find(node => node.condition.nodeValue, node.explanation),
leftMissing = choice ? [] : R.chain(collectNodeMissing,R.pluck("condition",node.explanation)),
leftMissing = choice ? [] : R.uniq(R.chain(collectNodeMissing,R.pluck("condition",node.explanation))),
rightMissing = choice ? collectNodeMissing(choice) : R.chain(collectNodeMissing,node.explanation)
return R.concat(leftMissing,rightMissing)
}