1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-24 17:51:14 +02:00

Update src/lib/features/feature-lifecycle/feature-lifecycle-service.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Jaanus Sellin 2025-09-01 16:28:29 +03:00 committed by GitHub
parent eb52b2bef3
commit 973423de6e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -228,7 +228,10 @@ export class FeatureLifecycleService {
if (!featureEnvMap.has(fe.environment)) {
featureEnvMap.set(fe.environment, new Map());
}
featureEnvMap.get(fe.environment)!.set(fe.featureName, fe);
const envMap = featureEnvMap.get(fe.environment);
if (envMap) {
envMap.set(fe.featureName, fe);
}
});
return featureEnvMap;