diff --git a/x-pack/plugins/fleet/server/services/package_policy.ts b/x-pack/plugins/fleet/server/services/package_policy.ts index d84d50e00b8a9..9b02d6eaff495 100644 --- a/x-pack/plugins/fleet/server/services/package_policy.ts +++ b/x-pack/plugins/fleet/server/services/package_policy.ts @@ -1092,7 +1092,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;