ui: resolve race condition in ATT&CK configuration page

This commit is contained in:
Mike Salvatore 2021-03-01 11:57:59 -05:00
parent cfaf4a15c3
commit 4d4a01b6a2
1 changed files with 2 additions and 2 deletions

View File

@ -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'});