File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import { getOrgFromDomain } from './data/org';
77import { SINGLE_TENANT_ORG_DOMAIN , SINGLE_TENANT_ORG_ID , SOURCEBOT_GUEST_USER_ID } from './lib/constants' ;
88import { ServiceErrorException } from './lib/serviceError' ;
99import { getOrgMetadata , isServiceError } from './lib/utils' ;
10- import { clearSearchContexts , getSearchContexts } from './actions' ;
10+ import { clearSearchContexts } from './actions' ;
1111
1212const logger = createLogger ( 'web-initialize' ) ;
1313
@@ -67,10 +67,7 @@ const initSingleTenancy = async () => {
6767 // search contexts that may be present in the DB
6868 const hasSearchContextEntitlement = hasEntitlement ( "search-contexts" )
6969 if ( ! hasSearchContextEntitlement ) {
70- const searchContexts = await getSearchContexts ( SINGLE_TENANT_ORG_DOMAIN ) ;
71- if ( ! isServiceError ( searchContexts ) && searchContexts . length > 0 ) {
72- clearSearchContexts ( SINGLE_TENANT_ORG_DOMAIN )
73- }
70+ clearSearchContexts ( SINGLE_TENANT_ORG_DOMAIN )
7471 }
7572
7673 // Sync anonymous access config from the config file
You can’t perform that action at this time.
0 commit comments