This is an automated email from the ASF dual-hosted git repository. johnbodley pushed a commit to branch john-bodley--cleanup-host-names-config in repository https://gitbox.apache.org/repos/asf/superset.git
commit df5beae835e423d681036ba20984ac871a83b3bd Author: John Bodley <[email protected]> AuthorDate: Thu Oct 5 13:49:11 2023 -0700 chore: Cleanup hostNamesConfig.js --- superset-frontend/src/utils/hostNamesConfig.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/superset-frontend/src/utils/hostNamesConfig.js b/superset-frontend/src/utils/hostNamesConfig.js index 1d3869a8aa..2ba9b7555c 100644 --- a/superset-frontend/src/utils/hostNamesConfig.js +++ b/superset-frontend/src/utils/hostNamesConfig.js @@ -41,12 +41,7 @@ function getDomainsConfig() { // eslint-disable-next-line camelcase initFeatureFlags(bootstrapData.common.feature_flags); - if ( - bootstrapData && - bootstrapData.common && - bootstrapData.common.conf && - bootstrapData.common.conf.SUPERSET_WEBSERVER_DOMAINS - ) { + if (bootstrapData?.common?.conf?.SUPERSET_WEBSERVER_DOMAINS) { bootstrapData.common.conf.SUPERSET_WEBSERVER_DOMAINS.forEach(hostName => { availableDomains.add(hostName); });
