From 8f417f52ce16db6fe40b9103493355497ca8e6e2 Mon Sep 17 00:00:00 2001 From: Ilija Lazoroski Date: Thu, 21 Jul 2022 15:18:46 +0200 Subject: [PATCH] UI: Remove unneeded variable data --- .../cc/ui/src/components/pages/ConfigurePage.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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) => {