diff --git a/x-pack/plugins/fleet/server/services/package_policy.ts b/x-pack/plugins/fleet/server/services/package_policy.ts index 4a3f1c1c9c2c4..247f8cb7c738e 100644 --- a/x-pack/plugins/fleet/server/services/package_policy.ts +++ b/x-pack/plugins/fleet/server/services/package_policy.ts @@ -1014,7 +1014,7 @@ function deepMergeVars(original: any, override: any): any { for (const { name, ...overrideVal } of overrideVars) { const originalVar = original.vars[name]; - result.vars[name] = { ...overrideVal, ...originalVar }; + result.vars[name] = { ...originalVar, ...overrideVal }; } return result;