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); });