Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Ho <[email protected]>
  • Loading branch information
derek-ho committed Jan 25, 2024
1 parent fec4734 commit 099e5ce
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions public/apps/account/account-app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,13 @@ export async function setupTopNavButton(coreStart: CoreStart, config: ClientConf

const dashboardsInfo = await getDashboardsInfoSafe(coreStart.http);
const multitenancyEnabled = dashboardsInfo?.multitenancy_enabled && config.multitenancy.enabled;
const defaultTenantSet = dashboardsInfo?.default_tenant !== ''
;
if (tenantSpecifiedInUrl() || getShouldShowTenantPopup() === false || !multitenancyEnabled || defaultTenantSet ) {
const defaultTenantSet = dashboardsInfo?.default_tenant !== '';
if (
tenantSpecifiedInUrl() ||
getShouldShowTenantPopup() === false ||
!multitenancyEnabled ||
defaultTenantSet
) {
shouldShowTenantPopup = false;
} else {
// Switch to previous tenant based on localStorage, it may fail due to
Expand Down

0 comments on commit 099e5ce

Please sign in to comment.