diff --git a/source/engine/generateQuestions.js b/source/engine/generateQuestions.js index 62d1f60f7..59797d731 100644 --- a/source/engine/generateQuestions.js +++ b/source/engine/generateQuestions.js @@ -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