🐛 Evite un clic inutile au changement d'exemple
parent
d585846c2d
commit
b55b8ceef6
|
@ -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)
|
||||
}>
|
||||
|
|
Loading…
Reference in New Issue