forked from p15670423/monkey
Island UI: fix a bug that caused the config UI to remain the same even on configuration submit
This commit is contained in:
parent
0000486f20
commit
d9cf28251f
|
@ -118,13 +118,13 @@ class ConfigurePageComponent extends AuthComponent {
|
|||
this.setState({showUnsafeAttackOptionsWarning: false});
|
||||
}
|
||||
|
||||
|
||||
updateConfig = (callback = null) => {
|
||||
this.authFetch(CONFIG_URL)
|
||||
.then(res => res.json())
|
||||
.then(data => {
|
||||
this.setInitialConfig(data.configuration);
|
||||
this.setState({configuration: data.configuration}, callback);
|
||||
this.setState({configuration: data.configuration,
|
||||
currentFormData: data.configuration[this.state.selectedSection]}, callback);
|
||||
})
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue