Changement de l'ordre du choix de l'inversion à saisir

pull/138/head
mama 2017-11-23 16:57:55 +01:00
parent 1188bb1750
commit b00907d421
1 changed files with 4 additions and 4 deletions

View File

@ -116,15 +116,15 @@ export let makeQuestion = (flatRules, targetNames) => dottedName => {
inversion: do {
let inversions = R.path(['formule', 'inversion', 'avec'])(rule)
inversions && {
inversions: R.reject(({ name }) => targetNames.includes(name))(
inversions
.map(i =>
inversions: [rule].concat(
R.reject(({ name }) => targetNames.includes(name))(
inversions.map(i =>
findRuleByDottedName(
flatRules,
disambiguateRuleReference(flatRules, rule, i)
)
)
.concat([rule])
)
),
question: rule.formule.inversion.question,
title: rule.formule.inversion.titre