Addressed react/no-access-state-in-setstate

This commit is contained in:
Filip Barl
2019-08-01 08:39:42 +02:00
committed by Daniel Holbach
parent f27d1337c8
commit 7c417bd5d6
8 changed files with 41 additions and 35 deletions
@@ -157,9 +157,9 @@ class DebugToolbar extends React.Component {
}
toggleColors() {
this.setState({
showColors: !this.state.showColors
});
this.setState(prevState => ({
showColors: !prevState.showColors
}));
}
asyncDispatch(v) {