diff --git a/packages/backend-core/src/features/index.ts b/packages/backend-core/src/features/index.ts index d1d757d8a9..42cd5a79b4 100644 --- a/packages/backend-core/src/features/index.ts +++ b/packages/backend-core/src/features/index.ts @@ -136,9 +136,10 @@ export class FlagSet, T extends { [key: string]: V }> { return cachedFlags } + const currentContext = context.getCurrentContext() const tags: Record = {} const flagValues = this.defaults() - const currentTenantId = context.getTenantId() + const currentTenantId = currentContext?.tenantId const specificallySetFalse = new Set() const split = (env.TENANT_FEATURE_FLAGS || "")