diff --git a/src/lib/services/feature-toggle-service.ts b/src/lib/services/feature-toggle-service.ts index ed0c9d2108..9fdd59d049 100644 --- a/src/lib/services/feature-toggle-service.ts +++ b/src/lib/services/feature-toggle-service.ts @@ -1898,7 +1898,10 @@ class FeatureToggleService { featureName, environment, ); - const { newDocument } = await applyPatch(oldVariants, newVariants); + const { newDocument } = await applyPatch( + deepClone(oldVariants), + newVariants, + ); return this.crProtectedSaveVariantsOnEnv( project, featureName,