From d585846c2d1aa08fec59bb8c55f8a3b73ac13252 Mon Sep 17 00:00:00 2001 From: Laurent Bossavit Date: Fri, 27 Apr 2018 10:20:30 +0200 Subject: [PATCH] =?UTF-8?q?:bug:=20Evite=20une=20exception=20=C3=A0=20l'af?= =?UTF-8?q?fichage=20des=20r=C3=A8gles=20sans=20formule?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/engine/traverse.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/engine/traverse.js b/source/engine/traverse.js index 91dca92ad..cc31bf341 100644 --- a/source/engine/traverse.js +++ b/source/engine/traverse.js @@ -500,7 +500,7 @@ export let treatRuleRoot = (rules, rule) => { (applicable && applicable.missingVariables) || {} ), collectInFormule = isApplicable !== false, - formMissing = (collectInFormule && formule.missingVariables) || {}, + formMissing = (collectInFormule && formule && formule.missingVariables) || {}, // On veut abaisser le score des conséquences par rapport aux conditions, // mais seulement dans le cas où une condition est effectivement présente hasCondition = keys(condMissing).length > 0,