forked from p15670423/monkey
Race condition bugfix
This commit is contained in:
parent
8ecfb5d777
commit
f4288f110c
|
@ -252,12 +252,12 @@ class ConfigurePageComponent extends AuthComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
setSelectedSection = (key) => {
|
setSelectedSection = (key) => {
|
||||||
this.updateConfigSection();
|
|
||||||
if ((key === 'attack' && this.userChangedConfig()) ||
|
if ((key === 'attack' && this.userChangedConfig()) ||
|
||||||
(this.currentSection === 'attack' && this.userChangedMatrix())){
|
(this.currentSection === 'attack' && this.userChangedMatrix())){
|
||||||
this.setState({showAttackAlert: true});
|
this.setState({showAttackAlert: true});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
this.updateConfigSection();
|
||||||
this.currentSection = key;
|
this.currentSection = key;
|
||||||
this.setState({
|
this.setState({
|
||||||
selectedSection: key
|
selectedSection: key
|
||||||
|
|
Loading…
Reference in New Issue