chore: Cleanup hostNamesConfig.js (#25543)

This commit is contained in:
John Bodley 2023-10-17 15:58:43 -07:00 committed by GitHub
parent 16cc089b19
commit 32e37d8cda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 6 deletions

View File

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