diff --git a/src/lib/features/client-feature-toggles/delta/client-feature-toggle-delta.ts b/src/lib/features/client-feature-toggles/delta/client-feature-toggle-delta.ts index 38234ea1df..1f8c03be99 100644 --- a/src/lib/features/client-feature-toggles/delta/client-feature-toggle-delta.ts +++ b/src/lib/features/client-feature-toggles/delta/client-feature-toggle-delta.ts @@ -53,14 +53,14 @@ const applyRevision = (first: Revision, last: Revision): Revision => { ]), ); - for (const feature of last.removed) { - updatedMap.delete(feature.name); - } - for (const feature of last.updated) { removedMap.delete(feature.name); } + for (const feature of last.removed) { + updatedMap.delete(feature.name); + } + return { revisionId: last.revisionId, updated: Array.from(updatedMap.values()),