This is an automated email from the ASF dual-hosted git repository.
johnbodley pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new 32e37d8cda chore: Cleanup hostNamesConfig.js (#25543)
32e37d8cda is described below
commit 32e37d8cda46f7760220601908e4c4dd7ca5b5b4
Author: John Bodley <[email protected]>
AuthorDate: Tue Oct 17 15:58:43 2023 -0700
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);
});