diff --git a/x-pack/plugins/security_solution/server/endpoint/routes/metadata/handlers.ts b/x-pack/plugins/security_solution/server/endpoint/routes/metadata/handlers.ts index 971611238017..a79175b178c3 100644 --- a/x-pack/plugins/security_solution/server/endpoint/routes/metadata/handlers.ts +++ b/x-pack/plugins/security_solution/server/endpoint/routes/metadata/handlers.ts @@ -299,7 +299,7 @@ export async function enrichHostMetadata( true ); const endpointPolicy = ((agentPolicy?.package_policies || []) as PackagePolicy[]).find( - (x: PackagePolicy) => x.package?.name === 'endpoint' + (policy: PackagePolicy) => policy.package?.name === 'endpoint' ); policyInfo = {