diff --git a/x-pack/plugins/security_solution/server/search_strategy/timeline/factory/events/details/helpers.ts b/x-pack/plugins/security_solution/server/search_strategy/timeline/factory/events/details/helpers.ts index baa9e0c504deca..a0ec0b77c6422c 100644 --- a/x-pack/plugins/security_solution/server/search_strategy/timeline/factory/events/details/helpers.ts +++ b/x-pack/plugins/security_solution/server/search_strategy/timeline/factory/events/details/helpers.ts @@ -111,6 +111,8 @@ export const getDataFromFieldsHits = ( const flat = [...accumulator, ...nestedFields].reduce( (acc, f) => ({ ...acc, + // acc is hashmap to determine if we already have the field or not without an array iteration + // its converted back to array in return with Object.values ...(acc[f.field] != null ? { [f.field]: {