From b00907d42161163e2c5f9ff73282e5e1e206e749 Mon Sep 17 00:00:00 2001 From: mama Date: Thu, 23 Nov 2017 16:57:55 +0100 Subject: [PATCH] =?UTF-8?q?Changement=20de=20l'ordre=20du=20choix=20de=20l?= =?UTF-8?q?'inversion=20=C3=A0=20saisir?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/engine/generateQuestions.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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