UI: Fix error in ConfigurePage.js after refresh of the page

This commit is contained in:
vakarisz 2022-07-08 12:01:19 +03:00
parent 5a52ceaa4c
commit ef8d52b96f
1 changed files with 2 additions and 1 deletions

View File

@ -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];
}