diff --git a/packages/web/src/initialize.ts b/packages/web/src/initialize.ts index 67d9db23..bd598ec5 100644 --- a/packages/web/src/initialize.ts +++ b/packages/web/src/initialize.ts @@ -64,7 +64,8 @@ const initSingleTenancy = async () => { } // If we don't have the search context entitlement then wipe any existing - // search contexts that may be present in the DB + // search contexts that may be present in the DB. This could happen if a deployment had + // the entitlement, synced search contexts, and then no longer had the entitlement const hasSearchContextEntitlement = hasEntitlement("search-contexts") if(!hasSearchContextEntitlement) { clearSearchContexts(SINGLE_TENANT_ORG_DOMAIN)