1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-24 17:51:14 +02:00
This commit is contained in:
Jaanus 2025-09-01 16:27:18 +03:00
parent efcad967d6
commit eb52b2bef3
No known key found for this signature in database

View File

@ -299,7 +299,7 @@ export class FeatureLifecycleService {
environment: string, environment: string,
featureEnvMap: Map<string, Map<string, IFeatureEnvironment>>, featureEnvMap: Map<string, Map<string, IFeatureEnvironment>>,
): string[] { ): string[] {
const envFeatureEnvs = featureEnvMap.get(environment) || new Map(); const envFeatureEnvs = featureEnvMap.get(environment) ?? new Map();
return features.filter((feature) => { return features.filter((feature) => {
const fe = envFeatureEnvs.get(feature); const fe = envFeatureEnvs.get(feature);
return fe?.enabled; return fe?.enabled;