Don't error if you can't get the current tenant ID.
This commit is contained in:
parent
354e5dd34c
commit
dc28b7e133
|
@ -136,9 +136,10 @@ export class FlagSet<V extends Flag<any>, T extends { [key: string]: V }> {
|
|||
return cachedFlags
|
||||
}
|
||||
|
||||
const currentContext = context.getCurrentContext()
|
||||
const tags: Record<string, any> = {}
|
||||
const flagValues = this.defaults()
|
||||
const currentTenantId = context.getTenantId()
|
||||
const currentTenantId = currentContext?.tenantId
|
||||
const specificallySetFalse = new Set<string>()
|
||||
|
||||
const split = (env.TENANT_FEATURE_FLAGS || "")
|
||||
|
|
Loading…
Reference in New Issue