Skip to content

Commit

Permalink
chore: Cleanup hostNamesConfig.js (#25543)
Browse files Browse the repository at this point in the history
  • Loading branch information
john-bodley authored Oct 17, 2023
1 parent 16cc089 commit 32e37d8
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions superset-frontend/src/utils/hostNamesConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down

0 comments on commit 32e37d8

Please sign in to comment.