UI: Remove unneeded variable data

This commit is contained in:
Ilija Lazoroski 2022-07-21 15:18:46 +02:00
parent 24397ce3ea
commit 8f417f52ce
1 changed files with 2 additions and 3 deletions

View File

@ -170,10 +170,9 @@ class ConfigurePageComponent extends AuthComponent {
} }
onChange = (formData) => { onChange = (formData) => {
let data = formData;
let configuration = this.state.configuration; let configuration = this.state.configuration;
configuration[this.state.selectedSection] = data; configuration[this.state.selectedSection] = formData;
this.setState({currentFormData: data, configuration: configuration}); this.setState({currentFormData: formData, configuration: configuration});
}; };
onCredentialChange = (credentials) => { onCredentialChange = (credentials) => {