From f4288f110cf3d4fd1d871fcfd37c45315982d0f2 Mon Sep 17 00:00:00 2001 From: VakarisZ Date: Mon, 27 May 2019 17:31:10 +0300 Subject: [PATCH] Race condition bugfix --- .../monkey_island/cc/ui/src/components/pages/ConfigurePage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 51253ab0e..1801679f8 100644 --- a/monkey/monkey_island/cc/ui/src/components/pages/ConfigurePage.js +++ b/monkey/monkey_island/cc/ui/src/components/pages/ConfigurePage.js @@ -252,12 +252,12 @@ class ConfigurePageComponent extends AuthComponent { } setSelectedSection = (key) => { - this.updateConfigSection(); if ((key === 'attack' && this.userChangedConfig()) || (this.currentSection === 'attack' && this.userChangedMatrix())){ this.setState({showAttackAlert: true}); return; } + this.updateConfigSection(); this.currentSection = key; this.setState({ selectedSection: key