From ef8d52b96f77a176cf8d119c08fd3cd44bf692af Mon Sep 17 00:00:00 2001 From: vakarisz Date: Fri, 8 Jul 2022 12:01:19 +0300 Subject: [PATCH] UI: Fix error in ConfigurePage.js after refresh of the page --- .../monkey_island/cc/ui/src/components/pages/ConfigurePage.js | 3 ++- 1 file changed, 2 insertions(+), 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 81dfbfb14..85d20c82d 100644 --- a/monkey/monkey_island/cc/ui/src/components/pages/ConfigurePage.js +++ b/monkey/monkey_island/cc/ui/src/components/pages/ConfigurePage.js @@ -64,7 +64,8 @@ class ConfigurePageComponent extends AuthComponent { } getSectionsOrder() { - let islandMode = this.props.islandMode !== 'unset' ? this.props.islandMode : 'advanced' + let islandModeSet = (this.props.islandMode !== 'unset' && this.props.islandMode !== undefined) + let islandMode = islandModeSet ? this.props.islandMode : 'advanced' return CONFIGURATION_TABS_PER_MODE[islandMode]; }