mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-24 17:51:14 +02:00
Fix
This commit is contained in:
parent
efcad967d6
commit
eb52b2bef3
@ -299,7 +299,7 @@ export class FeatureLifecycleService {
|
||||
environment: string,
|
||||
featureEnvMap: Map<string, Map<string, IFeatureEnvironment>>,
|
||||
): string[] {
|
||||
const envFeatureEnvs = featureEnvMap.get(environment) || new Map();
|
||||
const envFeatureEnvs = featureEnvMap.get(environment) ?? new Map();
|
||||
return features.filter((feature) => {
|
||||
const fe = envFeatureEnvs.get(feature);
|
||||
return fe?.enabled;
|
||||
|
Loading…
Reference in New Issue
Block a user