From b55b8ceef655fd61879d68acc8f97fe464ea31a5 Mon Sep 17 00:00:00 2001 From: Laurent Bossavit Date: Fri, 27 Apr 2018 10:22:26 +0200 Subject: [PATCH] :bug: Evite un clic inutile au changement d'exemple --- source/components/rule/Examples.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/components/rule/Examples.js b/source/components/rule/Examples.js index 919b4201a..bc10ccdee 100644 --- a/source/components/rule/Examples.js +++ b/source/components/rule/Examples.js @@ -85,7 +85,7 @@ export default class Examples extends Component { selected: currentExample && currentExample.name == nom })} onClick={() => - currentExample + currentExample && currentExample.name == nom ? setExample(null) : setExample(nom, situation) }>