From 360bdbdc0a9f0079ef6476ad5b8788423b0c3372 Mon Sep 17 00:00:00 2001 From: Laurent Bossavit Date: Fri, 27 Apr 2018 11:52:41 +0200 Subject: [PATCH] :bug: Affiche la valeur saisie d'une inversion --- source/engine/mecanisms.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/engine/mecanisms.js b/source/engine/mecanisms.js index 84a8fe88f..8e0fc4fad 100644 --- a/source/engine/mecanisms.js +++ b/source/engine/mecanisms.js @@ -479,7 +479,8 @@ export let mecanismInversion = dottedName => (recurse, k, v) => { // avoid the inversion loop ! situationGate(dottedName) == undefined && doInversion(cache, situationGate, parsedRules, v, dottedName), - nodeValue = inversion.nodeValue, + // TODO - ceci n'est pas vraiment satisfaisant + nodeValue = situationGate(dottedName) ? Number.parseFloat(situationGate(dottedName)) : inversion.nodeValue, missingVariables = inversion.missingVariables let evaluatedNode = rewriteNode(node, nodeValue, null, missingVariables)