From 32e37d8cda46f7760220601908e4c4dd7ca5b5b4 Mon Sep 17 00:00:00 2001 From: John Bodley <4567245+john-bodley@users.noreply.github.com> Date: Tue, 17 Oct 2023 15:58:43 -0700 Subject: [PATCH] chore: Cleanup hostNamesConfig.js (#25543) --- 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); });