diff --git a/monkey/monkey_island/cc/ui/src/components/pages/ConfigurePage.js b/monkey/monkey_island/cc/ui/src/components/pages/ConfigurePage.js index 66e9cced1..bb1d1a281 100644 --- a/monkey/monkey_island/cc/ui/src/components/pages/ConfigurePage.js +++ b/monkey/monkey_island/cc/ui/src/components/pages/ConfigurePage.js @@ -170,10 +170,9 @@ class ConfigurePageComponent extends AuthComponent { } onChange = (formData) => { - let data = formData; let configuration = this.state.configuration; - configuration[this.state.selectedSection] = data; - this.setState({currentFormData: data, configuration: configuration}); + configuration[this.state.selectedSection] = formData; + this.setState({currentFormData: formData, configuration: configuration}); }; onCredentialChange = (credentials) => {