From d9cf28251f52d66e8ba64711f07e4efbc89ed73d Mon Sep 17 00:00:00 2001 From: VakarisZ Date: Tue, 20 Jul 2021 14:43:53 +0300 Subject: [PATCH] Island UI: fix a bug that caused the config UI to remain the same even on configuration submit --- .../monkey_island/cc/ui/src/components/pages/ConfigurePage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 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 4d7fdd2d0..1f651f173 100644 --- a/monkey/monkey_island/cc/ui/src/components/pages/ConfigurePage.js +++ b/monkey/monkey_island/cc/ui/src/components/pages/ConfigurePage.js @@ -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); }) };