🐛 Répare partiellement le rendu des règles

pull/21/head
Laurent Bossavit 2017-07-13 12:11:41 +02:00
parent dc0a749005
commit b3c96e822a
2 changed files with 8 additions and 32 deletions

View File

@ -22,10 +22,7 @@ let evaluateArray = (reducer, start) => (situationGate, parsedRules, node) => {
nodeValue,
collectMissing,
explanation,
jsx: {
...node.jsx,
value: nodeValue
}
jsx: R.assocPath(["props","value"],nodeValue,node.jsx)
}
}
@ -51,10 +48,7 @@ let evaluateObject = (objectShape, effect) => (situationGate, parsedRules, node)
nodeValue,
collectMissing,
explanation,
jsx: {
...node.jsx,
value: nodeValue
}
jsx: R.assocPath(["props","value"],nodeValue,node.jsx)
}
}
@ -210,10 +204,7 @@ export let mecanismNumericalLogic = (recurse, k,v) => {
nodeValue,
collectMissing,
explanation,
jsx: {
...node.jsx,
value: nodeValue
}
jsx: R.assocPath(["props","value"],nodeValue,node.jsx)
}
}

View File

@ -89,10 +89,7 @@ let createVariableNode = (rules, rule, situationGate) => (parseResult) => {
collectMissing,
missingVariables,
explanation,
jsx: {
...node.jsx,
value: nodeValue
}
jsx: R.assocPath(["props","value"],nodeValue,node.jsx)
}
}
@ -190,10 +187,7 @@ let treat = (situationGate, rules, rule) => rawNode => {
nodeValue,
collectMissing,
explanation,
jsx: {
...node.jsx,
value: nodeValue
}
jsx: R.assocPath(["props","value"],nodeValue,node.jsx)
}
}
@ -260,10 +254,7 @@ let treat = (situationGate, rules, rule) => rawNode => {
nodeValue,
collectMissing,
explanation,
jsx: {
...node.jsx,
value: nodeValue
}
jsx: R.assocPath(["props","value"],nodeValue,node.jsx)
}
}
@ -409,10 +400,7 @@ export let treatRuleRoot = (situationGate, rules, rule) => {
...node,
nodeValue,
explanation,
jsx: {
...node.jsx,
value: nodeValue
}
jsx: R.assocPath(["props","value"],nodeValue,node.jsx)
}
}
@ -452,10 +440,7 @@ export let treatRuleRoot = (situationGate, rules, rule) => {
...node,
nodeValue,
explanation,
jsx: {
...node.jsx,
value: nodeValue
}
jsx: R.assocPath(["props","value"],nodeValue,node.jsx)
}
}