forked from p15670423/monkey
ui: resolve race condition in ATT&CK configuration page
This commit is contained in:
parent
cfaf4a15c3
commit
4d4a01b6a2
|
@ -130,8 +130,8 @@ class ConfigurePageComponent extends AuthComponent {
|
|||
.then(() => {
|
||||
this.setInitialAttackConfig(this.state.attackConfig);
|
||||
})
|
||||
.then(this.updateConfig())
|
||||
.then(this.setState({lastAction: 'saved'}))
|
||||
.then(() => this.updateConfig())
|
||||
.then(() => this.setState({lastAction: 'saved'}))
|
||||
.catch(error => {
|
||||
console.log('Bad configuration: ' + error.toString());
|
||||
this.setState({lastAction: 'invalid_configuration'});
|
||||
|
|
Loading…
Reference in New Issue