🐛 Affiche la valeur saisie d'une inversion

pull/191/head
Laurent Bossavit 2018-04-27 11:52:41 +02:00
parent ac910aa5af
commit 360bdbdc0a
1 changed files with 2 additions and 1 deletions

View File

@ -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)