diff --git a/src/lib/features/client-feature-toggles/cache/client-feature-toggle-cache.ts b/src/lib/features/client-feature-toggles/cache/client-feature-toggle-cache.ts index 15de4d1f53b0..45d83a302990 100644 --- a/src/lib/features/client-feature-toggles/cache/client-feature-toggle-cache.ts +++ b/src/lib/features/client-feature-toggles/cache/client-feature-toggle-cache.ts @@ -208,8 +208,12 @@ export class ClientFeatureToggleCache { ]; const removed = changeEvents + .filter((event) => event.featureName && event.project) .filter((event) => event.type === 'feature-deleted') - .map((event) => event.featureName!); + .map((event) => ({ + name: event.featureName!, + project: event.project!, + })); // TODO: we might want to only update the environments that had events changed for performance for (const environment of keys) {