diff --git a/source/components/rule/Examples.js b/source/components/rule/Examples.js index c8a8e1a21..a3a0c8c55 100644 --- a/source/components/rule/Examples.js +++ b/source/components/rule/Examples.js @@ -12,7 +12,7 @@ import "./Examples.css" export default class Examples extends Component { runExamples() { let { rule } = this.props, - exemples = rule.exemples || [] + {exemples=[]} = rule return exemples.map(ex => { @@ -41,6 +41,7 @@ export default class Examples extends Component { focusedExample = R.path(['focusedExample', 'nom'])(this.props), {inject, situationExists , showValues} = this.props + if (!examples.length) return null return (

Exemples de calcul

@@ -58,7 +59,7 @@ export default class Examples extends Component { : } {nom} - {!ok && focusedExample == nom && + {!ok && focusedExample == nom &&
Ce test ne passe pas {showValues &&