You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by jo...@apache.org on 2023/10/05 20:49:18 UTC

[superset] branch john-bodley--cleanup-host-names-config created (now df5beae835)

This is an automated email from the ASF dual-hosted git repository.

johnbodley pushed a change to branch john-bodley--cleanup-host-names-config
in repository https://gitbox.apache.org/repos/asf/superset.git


      at df5beae835 chore: Cleanup hostNamesConfig.js

This branch includes the following new commits:

     new df5beae835 chore: Cleanup hostNamesConfig.js

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[superset] 01/01: chore: Cleanup hostNamesConfig.js

Posted by jo...@apache.org.
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 <45...@users.noreply.github.com>
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);
     });