forked from p15670423/monkey
Merge pull request #1340 from guardicore/config_UI_bug_on_submit
Island UI: fix config import UI bug
This commit is contained in:
commit
42dcb697e9
|
@ -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