mirror of
https://github.com/weaveworks/scope.git
synced 2026-08-18 03:46:45 +00:00
Addressed react/no-access-state-in-setstate
This commit is contained in:
committed by
Daniel Holbach
parent
f27d1337c8
commit
7c417bd5d6
@@ -157,9 +157,9 @@ class DebugToolbar extends React.Component {
|
||||
}
|
||||
|
||||
toggleColors() {
|
||||
this.setState({
|
||||
showColors: !this.state.showColors
|
||||
});
|
||||
this.setState(prevState => ({
|
||||
showColors: !prevState.showColors
|
||||
}));
|
||||
}
|
||||
|
||||
asyncDispatch(v) {
|
||||
|
||||
Reference in New Issue
Block a user