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 (